2018-05-27 01:42:52 +02:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2018-05-27 02:03:02 +02:00
|
|
|
build:
|
|
|
|
machine: true
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Build Postal Docker Container
|
|
|
|
command: docker build -t postal:latest .
|
|
|
|
- run:
|
|
|
|
name: Skip this job for Pull Requests
|
|
|
|
command: '[[ -v CIRCLE_PR_NUMBER ]] && circleci step halt || true'
|
2018-05-27 01:42:52 +02:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
nightly:
|
|
|
|
triggers:
|
|
|
|
- schedule:
|
|
|
|
cron: "0 * * * *"
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
- build
|
|
|
|
commit:
|
|
|
|
jobs:
|
|
|
|
- build
|