improve artifacts not to push node_modules

This commit is contained in:
Marco Zeisler 2021-05-12 01:06:09 +02:00
parent 666b623f4a
commit d650a2403c

View File

@ -124,14 +124,15 @@ test_fe:
before_script:
- docker login -u $DOCKER_USER -p $DOCKER_PW
artifacts:
untracked: true
paths:
- /img
tags:
- docker
docker-build-fe:
script:
- docker-compose build waecm_g4_fe
- docker save -o waecm_g4_fe ${DOCKER_USER}/${ASSIGNMENT}-fe
- docker save -o img/waecm_g4_fe ${DOCKER_USER}/${ASSIGNMENT}-fe
cache:
key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
paths:
@ -146,7 +147,7 @@ docker-build-fe:
docker-build-be:
script:
- docker-compose build waecm_g4_be
- docker save -o waecm_g4_be ${DOCKER_USER}/${ASSIGNMENT}-be
- docker save -o img/waecm_g4_be ${DOCKER_USER}/${ASSIGNMENT}-be
extends:
- .docker-build
- .docker-setup
@ -162,7 +163,7 @@ docker-build-be:
docker-push-fe:
script:
- docker image load --input waecm_g4_fe
- docker image load --input img/waecm_g4_fe
- docker image push ${DOCKER_USER}/${ASSIGNMENT}-fe
extends:
- .docker-push
@ -172,7 +173,7 @@ docker-push-fe:
docker-push-be:
script:
- docker image load --input waecm_g4_be
- docker image load --input img/waecm_g4_be
- docker image push ${DOCKER_USER}/${ASSIGNMENT}-be
extends:
- .docker-push