From 1555cfc32550e9074eb7d42b9e93294399c4d3bb Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Thu, 19 Feb 2026 11:54:45 +0700 Subject: [PATCH] feat: Update Dockerfile to Python 3.13 and configure Gitea token for Poetry during build via Jenkins. --- Dockerfile | 5 +++++ Jenkinsfile | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b4015ec..f189cc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,14 @@ # Use the official Python 3.11 image from the Docker Hub FROM python:3.13-slim as builder +ARG GITEA_TOKEN + # Install Poetry RUN pip install poetry + +RUN poetry config http-basic.licaeros-repo token ${GITEA_TOKEN} + # Set environment variables for Poetry ENV POETRY_NO_INTERACTION=1 \ POETRY_VIRTUALENVS_IN_PROJECT=1 \ diff --git a/Jenkinsfile b/Jenkinsfile index 68f22aa..368837c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,7 @@ pipeline { DOCKER_HUB_USERNAME = 'aimodocker' // This creates DOCKER_AUTH_USR and DOCKER_AUTH_PSW DOCKER_AUTH = credentials('aimodocker') + GITEA_TOKEN = credentials('72910676-c110-481e-8924-4512cdb66139') IMAGE_NAME = 'rbd-service' SERVICE_NAME = 'ahm-app' @@ -54,7 +55,7 @@ pipeline { steps { script { def fullImageName = "${DOCKER_HUB_USERNAME}/${IMAGE_NAME}" - sh "docker build -t ${fullImageName}:${IMAGE_TAG} ." + sh "docker build --build-arg GITEA_TOKEN=${GITEA_TOKEN} -t ${fullImageName}:${IMAGE_TAG} ." if (SECONDARY_TAG) { sh "docker tag ${fullImageName}:${IMAGE_TAG} ${fullImageName}:${SECONDARY_TAG}"