postal/.circleci/config.yml

36 lines
914 B
YAML
Raw Normal View History

version: 2
jobs:
2018-07-24 00:22:42 +02:00
build-alpine:
2018-05-27 02:03:02 +02:00
machine: true
2018-07-24 00:22:42 +02:00
working_directory: ~/repo/alpine
2018-05-27 02:03:02 +02:00
steps:
2018-07-24 00:22:42 +02:00
- checkout:
path: ~/repo
2018-05-27 02:03:02 +02:00
- run:
2018-05-27 02:06:08 +02:00
name: Build Postal Docker Container
2018-07-24 00:22:42 +02:00
command: cd alpine && docker build -t catdeployed/postal:latest -t catdeployed/postal:alpine .
2018-05-27 02:10:07 +02:00
- run:
name: Skip this job for Pull Requests
2018-05-27 02:30:47 +02:00
command: '[[ -v CIRCLE_PR_NUMBER ]] && circleci step halt || true'
2018-05-27 23:22:58 +02:00
- run:
name: Login to Docker Hub
command: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run:
name: Push to Docker Hub
2018-07-23 05:25:56 +02:00
command: docker push catdeployed/postal:latest
workflows:
version: 2
nightly:
triggers:
- schedule:
cron: "0 * * * *"
filters:
branches:
only:
- master
jobs:
2018-07-24 00:22:42 +02:00
- build-alpine
commit:
jobs:
2018-07-24 00:22:42 +02:00
- build-alpine