update tests

This commit is contained in:
ILoveYaToo 2020-04-13 00:34:38 -04:00
parent 3739e34a86
commit 8106a217b8

View File

@ -12,16 +12,25 @@ build-docker-alpine:
script: script:
- cd alpine - cd alpine
- docker build --network=host -t catdeployed/postal: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: build-docker-ubuntu:
stage: docker-build stage: docker-build
script: script:
- cd ubuntu - cd ubuntu
- docker build --network=host -t catdeployed/postal: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: test-docker-ubuntu:
stage: tests stage: tests
script: script:
- docker load -i postal-ubuntu-container.tar
- docker run -i catdeployed/postal:ubuntu /opt/postal/bin/postal make-user - docker run -i catdeployed/postal:ubuntu /opt/postal/bin/postal make-user
docker-cleanup: docker-cleanup: