Second commit
All checks were successful
git.cronocide.net/ssh-docker/pipeline/head This commit looks good

This commit is contained in:
Cronocide 2023-11-02 12:23:28 -06:00
parent b1ae13719b
commit f68a03df8f
Signed by: Cronocide
GPG Key ID: 2CB7D4B8DEB3198E
4 changed files with 13 additions and 21 deletions

View File

@ -1,11 +1,11 @@
FROM ubuntu
ENV PROJ_NAME=python-tool
FROM alpine
ENV PROJ_NAME=ssh-docker
# Install Python
FROM python:3.10.6 as PYTHON
# Copy project files
ADD ./ /$PROJ_NAME
RUN apk update && apk add --no-cache \
openssh-client \
autossh \
sshpass
# Run entrypoint
ENTRYPOINT [""]
CMD ["/usr/bin/ssh"]

2
Jenkinsfile vendored
View File

@ -16,7 +16,7 @@ pipeline {
}
environment {
WORKSPACE_PATH = "/opt/nomad/alloc/${NOMAD_ALLOC_ID}/${NOMAD_TASK_NAME}${WORKSPACE}"
DESCRIPTION = "Another amazing piece of software written by Cronocide."
DESCRIPTION = "A smol container for SSH client operations."
}
stages {
stage('Prepare') {

View File

@ -1,13 +1,4 @@
# python-template
# ssh-docker
Template repository for Docker image creation and deployment.
# Deployment Checklist
* Add Jenkins user to project as a Developer in Git
* Write the description in the Jenkinsfile env variable
* Add a private Github push mirror
* Add `?job=` to the webhook for Jenkins
* Rename the project in the README
* Delete this checklist from the README
A smol container for SSH client operations.
See the [Dockerfile](Dockerfile) for more details.

View File

@ -107,6 +107,7 @@ cicd_build() {
echo "Building Software"
docker build --pull=true \
--label "org.opencontainers.image.vendor=cronocide.net" \
--label "org.opencontainers.image.authors=github@cronocide.com" \
--label "org.opencontainers.image.title=${PROJECT_NAME}" \
--label "org.opencontainers.image.url=https://${GIT_REPO_NAME}" \
--label "org.opencontainers.image.source=https://${IMAGE_NAME}" \
@ -173,7 +174,7 @@ __no_req "$ACTION" && error "Action $ACTION is not recognized as a valid action.
# Fill in variables if not supplied by CICD
[ -z "$USERN" ] && export USERN=cronocide
[ -z "$GIT_REPO_NAME" ] && export GIT_REPO_NAME=git.cronocide.net
[ -z "$GIT_REPO_NAME" ] && export GIT_REPO_NAME=ghcr.io
# Define needed build strings