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

Only run when dockerfile has changed

parent 8198229e
No related branches found
No related tags found
No related merge requests found
Pipeline #19 passed with stage
in 3 minutes and 15 seconds
...@@ -33,6 +33,8 @@ docker-build: ...@@ -33,6 +33,8 @@ docker-build:
- docker push "$CI_REGISTRY_IMAGE${tag}" - 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:
- Dockerfile
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
exists: exists:
- Dockerfile - 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