Skip to content
Snippets Groups Projects
Commit 7e970d6c authored by Lambert Theisen's avatar Lambert Theisen
Browse files

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

parent 69234f6b
Branches
Tags
No related merge requests found
...@@ -26,6 +26,9 @@ build:environment: ...@@ -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 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:$CI_COMMIT_SHA # no need
- docker push $CI_REGISTRY_IMAGE:latest - docker push $CI_REGISTRY_IMAGE:latest
rules:
- if: '$CI_COMMIT_TAG != null' # always run for tags
- when: manual
only: only:
- tags # skips 15min, but has to be done manually if Dockerfile changes - tags # skips 15min, but has to be done manually if Dockerfile changes
...@@ -95,6 +98,7 @@ deploy:latex: ...@@ -95,6 +98,7 @@ deploy:latex:
expire_in: 6 month expire_in: 6 month
only: only:
- master - master
- tags
pages: pages:
stage: deploy stage: deploy
...@@ -106,4 +110,5 @@ pages: ...@@ -106,4 +110,5 @@ pages:
paths: paths:
- public - public
only: only:
- master - master
\ No newline at end of file - tags
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment