From 4c4920b2722a2cefbd68c2b4abc8a87b46c0dd17 Mon Sep 17 00:00:00 2001 From: devaine Date: Wed, 11 Nov 2026 20:28:40 -0600 Subject: [PATCH] build: minor updates, finishing up.. --- Jenkinsfile | 28 ++++++++++++++++------------ server/desec-ip-sync/Dockerfile | 2 +- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a149999..68250ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,33 +4,37 @@ pipeline { PROJECT_OWNER = "devaine" } stages { - stage("Build") { + stage("build-desec") { + environment { + SCRIPT_NAME = "desec" + } steps { // Reference: https://www.jenkins.io/doc/pipeline/steps/credentials-binding/ withCredentials([ string( credentialsId: "FORGEJO_REGISTRY", - variable: "FORGEJO_REGISTRY" + variable: "REGISTRY" ), usernamePassword( credentialsId: "FORGEJO_REGISTRY_LOGIN", usernameVariable: "FORGEJO_USERNAME", passwordVariable: "FORGEJO_PAT" ) - ]) - - // Login to the Forgejo Registry - sh ''' - printf "$FORGEJO_PAT" | docker login "$FORGEJO_REGISTRY" -u "$FOREGJO_PAT_USER" --password-stdin - ''' - - - dir('./server/desec-ip-sync/') { + ]) { + // Login to the Forgejo Registry sh ''' - docker buildx build -t "$FOREGJO_REGISTRY"/${env.PROJECT_OWNER}/${env.JOB_NAME} + printf "$FORGEJO_PAT" | docker login "$REGISTRY" -u "$FORGEJO_USERNAME" --password-stdin ''' + + // Get into the desec-ip-sync directory + dir('./server/desec-ip-sync/') { + sh ''' + docker buildx build -t "$REGISTRY"/"$PROJECT_OWNER"/"$SCRIPT_NAME" . + ''' + } } + // Clean workspace after build cleanWs() } diff --git a/server/desec-ip-sync/Dockerfile b/server/desec-ip-sync/Dockerfile index 75288f1..a33c7b7 100755 --- a/server/desec-ip-sync/Dockerfile +++ b/server/desec-ip-sync/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /desec/server/desec-ip-sync/ SHELL ["bash", "-c"] -RUN apt update && apt install python3.11-venv -y +RUN apt update && apt install python3-all-venv -y RUN bash run.bash