postal/.gitlab-ci.yml
2020-04-13 00:16:26 -04:00

31 lines
554 B
YAML

#variables:
before_script:
- docker info
stages:
- docker-build
- 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 -t catdeployed/postal:ubuntu /opt/postal/bin/postal make-user
docker-cleanup:
stage: cleanup
script:
- docker system prune -af