add onsuccess keyword to upload latest

This commit is contained in:
Lukas Heiligenbrunner 2020-08-04 12:53:52 +00:00
parent 6df7755c23
commit 6c430734d2

View File

@ -12,6 +12,7 @@ build:
build-latest:
stage: build
when: manual
allow_failure: false
script:
- cd latest
- docker build --no-cache -t luki42/latex-full:latest-dev .
@ -25,6 +26,7 @@ upload:
upload-latest:
stage: upload
needs: ["build-latest"]
when: on_success
script:
- docker push luki42/latex-full:latest-dev