Updated config.yml
This commit is contained in:
parent
53f68940d5
commit
4c573c78f0
|
@ -11,7 +11,16 @@ jobs:
|
|||
- run: go get -v -t -d ./...
|
||||
- run: go test -v ./...
|
||||
|
||||
build-and-push:
|
||||
docker-build:
|
||||
executor: docker/docker
|
||||
steps:
|
||||
- setup_remote_docker
|
||||
- checkout
|
||||
- docker/build:
|
||||
image: pboehm/ddns
|
||||
dockerfile: docker/ddns/Dockerfile
|
||||
|
||||
docker-build-and-push:
|
||||
executor: docker/docker
|
||||
steps:
|
||||
- setup_remote_docker
|
||||
|
@ -21,14 +30,27 @@ jobs:
|
|||
image: pboehm/ddns
|
||||
dockerfile: docker/ddns/Dockerfile
|
||||
- docker/push:
|
||||
digest-path: /tmp/digest.txt
|
||||
image: pboehm/ddns
|
||||
- run:
|
||||
command: |
|
||||
echo "Digest is: $(</tmp/digest.txt)"
|
||||
tag: $CIRCLE_SHA1,latest
|
||||
|
||||
workflows:
|
||||
commit:
|
||||
jobs:
|
||||
- test:
|
||||
filters: # required since `docker-XXXX` have tag filters AND require `test`
|
||||
tags:
|
||||
only: /.*/
|
||||
|
||||
- docker-build:
|
||||
requires:
|
||||
- test
|
||||
- build-and-push
|
||||
filters:
|
||||
branches:
|
||||
ignore: master
|
||||
|
||||
- docker-build-and-push:
|
||||
requires:
|
||||
- test
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
Loading…
Reference in New Issue