stages: - build - upload - cleanup build: stage: build script: - cd static - docker build --no-cache -t luki42/latex-full:latest . build-latest: stage: build when: manual script: - cd latest - docker build --no-cache -t luki42/latex-full:latest-dev . upload: stage: upload needs: ["build"] script: - docker push luki42/latex-full:latest upload-latest: stage: upload needs: ["build-latest"] script: - docker push luki42/latex-full:latest-dev cleanup: stage: cleanup needs: ["upload"] script: - docker system prune -a -f