Commit 7e970d6c authored by Lambert Theisen's avatar Lambert Theisen 🚀

Add manual option to build env and fix deploy also for tags

parent 69234f6b
......@@ -26,6 +26,9 @@ build:environment:
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA # no need
- docker push $CI_REGISTRY_IMAGE:latest
rules:
- if: '$CI_COMMIT_TAG != null' # always run for tags
- when: manual
only:
- tags # skips 15min, but has to be done manually if Dockerfile changes
......@@ -95,6 +98,7 @@ deploy:latex:
expire_in: 6 month
only:
- master
- tags
pages:
stage: deploy
......@@ -106,4 +110,5 @@ pages:
paths:
- public
only:
- master
\ No newline at end of file
- master
- tags
\ No newline at end of file
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