Commit 70cc5da7 authored by Anthony FREYERMUTH's avatar Anthony FREYERMUTH
Browse files

[#2] Added a docker tag before push

parent 72d2480b
Pipeline #56362 failed with stages
in 2 minutes and 4 seconds
...@@ -27,8 +27,9 @@ docker-build: ...@@ -27,8 +27,9 @@ docker-build:
- docker login -u $AF_REGISTRY_USER -p $AF_REGISTRY_PASSWORD $AF_REGISTRY_URL - docker login -u $AF_REGISTRY_USER -p $AF_REGISTRY_PASSWORD $AF_REGISTRY_URL
script: script:
- echo $AF_REGISTRY_URL $AF_REGISTRY_USER $IMAGE_FQDN $APP - echo $AF_REGISTRY_URL $AF_REGISTRY_USER $IMAGE_FQDN $APP
- docker build --rm ./ -t ${IMAGE_FQDN} - docker build --rm ./ -t $APP:$CI_COMMIT_SHORT_SHA
- docker push $AF_REGISTRY_URL/$IMAGE_FQDN - docker tag $APP:$CI_COMMIT_SHORT_SHA
- docker push $AF_REGISTRY_URL/$APP:$CI_COMMIT_SHORT_SHA
variables: variables:
IMAGE_FQDN: ${APP}:${CI_COMMIT_REF_SLUG} IMAGE_FQDN: ${APP}:${CI_COMMIT_REF_SLUG}
only: only:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment