This commit is contained in:
FyloZ 2021-02-11 22:53:28 -05:00
parent dcc3064d1e
commit 37577e539f
1 changed files with 2 additions and 8 deletions

View File

@ -4,13 +4,10 @@ variables:
CI_REGISTRY_IMAGE_BACKEND: "$CI_REGISTRY_IMAGE:latest-backend"
CI_REGISTRY_IMAGE_FRONTEND: "$CI_REGISTRY_IMAGE:latest-frontend"
.before_script: *before_script
before_script:
- docker info
- docker login -u $CI_USERNAME -p $CI_ACCESS_TOKEN $CI_REGISTRY
before_script:
<<: *before_script
stages:
- build
- test
@ -65,13 +62,10 @@ package-frontend:
variables:
PACKAGE_CONTAINER_NAME: "cre_frontend_package"
ARTIFACT_NAME: "ColorRecipesExplorer-$CI_PIPELINE_IID-ng"
before_script:
# Adding a reference to *before_script because the local before_script actually overrides the global one, which contains the docker login.
<<: *before_script
script:
- apk update
- apk add --no-cache zip
- mkdir dist
script:
- docker run --name $PACKAGE_CONTAINER_NAME $CI_REGISTRY_IMAGE_NG gradle buildFrontend
- docker cp $PACKAGE_CONTAINER_NAME:/usr/src/cre/dist/frontend/ dist/
- zip -r $ARTIFACT_NAME.zip dist/