From 5b8614b106fdf3674034e0ed2bf5786027a2e252 Mon Sep 17 00:00:00 2001 From: Udai Singh <udai.singh@desy.de> Date: Tue, 14 May 2024 12:26:26 +0200 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 37f7fc4..8bbf4be 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,12 +33,14 @@ stages: # List of stages for jobs, and their order of execution build-job: # This job runs in the build stage, which runs first. - stage: build + image: + name: gcr.io/kaniko-project/executor:v1.14.0-debug + entrypoint: [""] script: - - echo "Compiling the code..." - - docker build -t gitlab.desy.de:5555/fs-ec/docker/bluesky_bliss_data ./docker - - - echo "Compile complete." + - /kaniko/executor + --context "${CI_PROJECT_DIR}" + --dockerfile "${CI_PROJECT_DIR}/docker/Dockerfile" + --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}" # unit-test-job: # This job runs in the test stage. # stage: test # It only starts when the job in the build stage completes successfully. -- GitLab