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
Loading
Pipeline #98 passed with stage
in 39 seconds
...@@ -37,15 +37,15 @@ arm64: ...@@ -37,15 +37,15 @@ arm64:
script: script:
- | - |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag="arm64" tag=":arm64"
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'arm64'" echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'arm64'"
else else
tag=":$CI_COMMIT_REF_SLUG" tag=":${CI_COMMIT_REF_SLUG}-arm64"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi fi
- docker build --pull -f arm64.dockerfile -t "$CI_REGISTRY_IMAGE${tag}-arm64" . - docker build --pull -f arm64.dockerfile -t "$CI_REGISTRY_IMAGE${tag}" .
- docker push "$CI_REGISTRY_IMAGE${tag}-arm64" - docker push "$CI_REGISTRY_IMAGE${tag}"
# Run this job in a branch where a Dockerfile exists # Run this job in a branch where a Dockerfile exists
rules: rules:
- changes: - 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