Compare commits
7 Commits
master
...
circleci-p
Author | SHA1 | Date |
---|---|---|
Philipp Böhm | 4c573c78f0 | |
Philipp Böhm | 53f68940d5 | |
Philipp Böhm | 8b714f3e64 | |
Philipp Böhm | f9c1c11c56 | |
Philipp Böhm | 02c22b305f | |
Philipp Böhm | 909c93114f | |
Philipp Böhm | c38ac71b93 |
|
@ -0,0 +1,56 @@
|
||||||
|
version: 2.1
|
||||||
|
orbs:
|
||||||
|
docker: circleci/docker@1.5.0
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
docker:
|
||||||
|
- image: circleci/golang:1.16
|
||||||
|
working_directory: /go/src/github.com/pboehm/ddns
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: go get -v -t -d ./...
|
||||||
|
- run: go test -v ./...
|
||||||
|
|
||||||
|
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
|
||||||
|
- checkout
|
||||||
|
- docker/check
|
||||||
|
- docker/build:
|
||||||
|
image: pboehm/ddns
|
||||||
|
dockerfile: docker/ddns/Dockerfile
|
||||||
|
- docker/push:
|
||||||
|
image: pboehm/ddns
|
||||||
|
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
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: master
|
||||||
|
|
||||||
|
- docker-build-and-push:
|
||||||
|
requires:
|
||||||
|
- test
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only: master
|
Loading…
Reference in New Issue