Skip to content
Snippets Groups Projects
Commit a03879f0 authored by Louis's avatar Louis :fire:
Browse files

Update .gitlab-ci.yml file

parent ac3006fc
No related branches found
No related tags found
No related merge requests found
Pipeline #98 passed with stage
in 39 seconds
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment