From c63eddbc1c552f134efef871cc7d2d403e11e8ab Mon Sep 17 00:00:00 2001 From: Kostis Trantzas <ktrantzas@ece.upatras.gr> Date: Tue, 16 Jul 2024 19:54:09 +0300 Subject: [PATCH] Update ci-templates/build.yml to run the pipeline to tag "latest" docker image in main --- ci-templates/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci-templates/build.yml b/ci-templates/build.yml index 4d10538..efda592 100644 --- a/ci-templates/build.yml +++ b/ci-templates/build.yml @@ -19,7 +19,7 @@ - | if [ "$CI_COMMIT_REF_NAME" = "main" ]; then echo "Pushing Docker image with tag 'latest'" - /kaniko/executor --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:latest" + /kaniko/executor --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:latest" --cache=true --cache-repo "${CI_REGISTRY_IMAGE}:$APP_VERSION" fi .angular_build: -- GitLab