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