ddns/.circleci/config.yml

35 lines
721 B
YAML
Raw Normal View History

2021-02-20 15:40:48 +01:00
version: 2.1
orbs:
docker: circleci/docker@1.5.0
2021-02-20 13:49:29 +01:00
jobs:
2021-02-20 15:40:48 +01:00
test:
2021-02-20 13:49:29 +01:00
docker:
2021-02-20 14:06:35 +01:00
- image: circleci/golang:1.16
2021-02-20 13:51:22 +01:00
working_directory: /go/src/github.com/pboehm/ddns
2021-02-20 13:49:29 +01:00
steps:
- checkout
- run: go get -v -t -d ./...
- run: go test -v ./...
2021-02-20 15:40:48 +01:00
build-and-push:
executor: docker/docker
steps:
- setup_remote_docker
- checkout
- docker/check
- docker/build:
image: pboehm/ddns
2021-02-20 16:11:01 +01:00
dockerfile: docker/ddns/Dockerfile
2021-02-20 15:40:48 +01:00
- docker/push:
digest-path: /tmp/digest.txt
image: pboehm/ddns
- run:
command: |
echo "Digest is: $(</tmp/digest.txt)"
workflows:
commit:
jobs:
- test
- build-and-push