Compare commits

...

7 Commits

Author SHA1 Message Date
Philipp Böhm 4c573c78f0 Updated config.yml 2021-02-20 16:37:33 +01:00
Philipp Böhm 53f68940d5 Updated config.yml 2021-02-20 16:11:01 +01:00
Philipp Böhm 8b714f3e64 Updated config.yml 2021-02-20 15:40:48 +01:00
Philipp Böhm f9c1c11c56 Updated config.yml 2021-02-20 14:06:35 +01:00
Philipp Böhm 02c22b305f Updated config.yml 2021-02-20 14:01:30 +01:00
Philipp Böhm 909c93114f Add .circleci/config.yml 2021-02-20 13:51:22 +01:00
Philipp Böhm c38ac71b93 Add .circleci/config.yml 2021-02-20 13:49:29 +01:00
1 changed files with 56 additions and 0 deletions

56
.circleci/config.yml Normal file
View File

@ -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