Activation du stage package et deploy seulement sur la branche master

This commit is contained in:
FyloZ 2021-02-12 22:18:16 -05:00
parent b70fd2ffc1
commit b7e0be0d84
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ build:
package:
stage: package
needs: ['build']
only:
refs:
- master
variables:
PACKAGE_CONTAINER_NAME: "cre_frontend_package"
ARTIFACT_NAME: "ColorRecipesExplorer-frontend-$CI_PIPELINE_IID"
@ -45,6 +48,9 @@ deploy:
stage: deploy
image: alpine:latest
needs: ['package']
only:
refs:
- master
variables:
DEPLOYED_CONTAINER_NAME: "cre_frontend"
before_script: