From a03879f047c8c835d819a6cced16adfc7551d653 Mon Sep 17 00:00:00 2001 From: Louis <contact@louiscap.co> Date: Thu, 18 Aug 2022 01:42:59 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6418360..43eeb56 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,15 +37,15 @@ arm64: script: - | if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then - tag="arm64" + tag=":arm64" echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'arm64'" else - tag=":$CI_COMMIT_REF_SLUG" + tag=":${CI_COMMIT_REF_SLUG}-arm64" echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" fi - - docker build --pull -f arm64.dockerfile -t "$CI_REGISTRY_IMAGE${tag}-arm64" . - - docker push "$CI_REGISTRY_IMAGE${tag}-arm64" + - docker build --pull -f arm64.dockerfile -t "$CI_REGISTRY_IMAGE${tag}" . + - docker push "$CI_REGISTRY_IMAGE${tag}" # Run this job in a branch where a Dockerfile exists rules: - changes: - - x86.dockerfile + - arm64.dockerfile -- GitLab