Update .gitlab-ci.yml

This commit is contained in:
William Nolin 2021-02-12 23:56:35 -05:00
parent 92f157758e
commit 82ef58bafc
1 changed files with 8 additions and 10 deletions

View File

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