diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29b390b..eac0c41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,16 +12,25 @@ build-docker-alpine: script: - cd alpine - docker build --network=host -t catdeployed/postal:alpine . + - docker save -o postal-alpine-container.tar catdeployed/postal:alpine + artifacts: + paths: + - postal-alpine-container.tar build-docker-ubuntu: stage: docker-build script: - cd ubuntu - docker build --network=host -t catdeployed/postal:ubuntu . + - docker save -o postal-ubuntu-container.tar catdeployed/postal:ubuntu + artifacts: + paths: + - postal-ubuntu-container.tar test-docker-ubuntu: stage: tests script: + - docker load -i postal-ubuntu-container.tar - docker run -i catdeployed/postal:ubuntu /opt/postal/bin/postal make-user docker-cleanup: