Update .gitlab-ci.yml

This commit is contained in:
William Nolin 2021-02-12 23:57:19 -05:00
parent 82ef58bafc
commit eb9bfda892
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ stages:
build:
stage: build
extends: .only-master-and-develop
extends: .only-master
script:
- docker pull $CI_REGISTRY_IMAGE_NG || true
- docker build --cache-from $CI_REGISTRY_IMAGE_NG -f ng.Dockerfile -t $CI_REGISTRY_IMAGE_NG .
@ -26,7 +26,7 @@ build:
package:
stage: package
needs: ['build']
extends: .only-master-and-develop
extends: .only-master
variables:
PACKAGE_CONTAINER_NAME: "cre_frontend_package"
ARTIFACT_NAME: "ColorRecipesExplorer-frontend-$CI_PIPELINE_IID"
@ -51,7 +51,7 @@ deploy:
stage: deploy
image: alpine:latest
needs: ['package']
extends: .only-master-and-develop
extends: .only-master
variables:
DEPLOYED_CONTAINER_NAME: "cre_frontend"
before_script: