31 lines
560 B
YAML
31 lines
560 B
YAML
#variables:
|
|
before_script:
|
|
- docker info
|
|
|
|
stages:
|
|
- docker-build
|
|
- tests
|
|
- cleanup
|
|
|
|
build-docker-alpine:
|
|
stage: docker-build
|
|
script:
|
|
- cd alpine
|
|
- 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 .
|
|
|
|
test-docker-ubuntu:
|
|
stage: tests
|
|
script:
|
|
- docker run -i catdeployed/postal:ubuntu /opt/postal/bin/postal make-user
|
|
|
|
docker-cleanup:
|
|
stage: cleanup
|
|
script:
|
|
- docker system prune -af
|