This commit is contained in:
ILoveYaToo 2020-04-17 02:25:16 -04:00
parent e650d4d4a2
commit 63f6349846

View File

@ -16,6 +16,7 @@ build-docker-alpine:
artifacts: artifacts:
paths: paths:
- alpine/postal-alpine-container.tar - alpine/postal-alpine-container.tar
expire_in: 1 day
build-docker-ubuntu: build-docker-ubuntu:
stage: build stage: build
@ -26,6 +27,7 @@ build-docker-ubuntu:
artifacts: artifacts:
paths: paths:
- ubuntu/postal-ubuntu-container.tar - ubuntu/postal-ubuntu-container.tar
expire_in: 1 day
test-docker-ubuntu: test-docker-ubuntu:
stage: tests stage: tests
@ -54,7 +56,7 @@ upload-images:
script: script:
- docker load -i ubuntu/postal-ubuntu-container.tar - docker load -i ubuntu/postal-ubuntu-container.tar
- docker load -i alpine/postal-alpine-container.tar - docker load -i alpine/postal-alpine-container.tar
- docker tag catdeployed/postal:alpine catdeployed:postal:latest - docker tag catdeployed/postal:alpine catdeployed/postal:latest
- docker login -u$DOCKER_USER -p$DOCKER_PASS - docker login -u$DOCKER_USER -p$DOCKER_PASS
- docker push catdeployed/postal:alpine - docker push catdeployed/postal:alpine
- docker push catdeployed/postal:ubuntu - docker push catdeployed/postal:ubuntu