2020-04-13 05:51:32 +02:00
|
|
|
#variables:
|
2020-04-13 05:37:04 +02:00
|
|
|
before_script:
|
|
|
|
- docker info
|
|
|
|
|
2020-04-13 05:54:14 +02:00
|
|
|
stages:
|
|
|
|
- docker-build
|
2020-04-13 06:17:37 +02:00
|
|
|
- tests
|
2020-04-13 05:57:55 +02:00
|
|
|
- cleanup
|
2020-04-13 05:54:14 +02:00
|
|
|
|
2020-04-13 05:51:32 +02:00
|
|
|
build-docker-alpine:
|
|
|
|
stage: docker-build
|
2020-04-13 05:37:04 +02:00
|
|
|
script:
|
|
|
|
- cd alpine
|
2020-04-13 05:51:32 +02:00
|
|
|
- docker build --network=host -t catdeployed/postal:alpine .
|
|
|
|
|
|
|
|
build-docker-ubuntu:
|
|
|
|
stage: docker-build
|
|
|
|
script:
|
|
|
|
- cd ubuntu
|
|
|
|
- docker build --network=host -t catdeployed/postal:ubuntu .
|
2020-04-13 06:14:50 +02:00
|
|
|
|
|
|
|
test-docker-ubuntu:
|
|
|
|
stage: tests
|
|
|
|
script:
|
2020-04-13 06:16:26 +02:00
|
|
|
- docker run -i -t catdeployed/postal:ubuntu /opt/postal/bin/postal make-user
|
2020-04-13 06:14:50 +02:00
|
|
|
|
2020-04-13 05:58:42 +02:00
|
|
|
docker-cleanup:
|
2020-04-13 05:57:55 +02:00
|
|
|
stage: cleanup
|
|
|
|
script:
|
|
|
|
- docker system prune -af
|