Skip to content

Commit

Permalink
Add docker build config
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfield committed Dec 5, 2018
1 parent 6b7f1d9 commit 68d4ad1
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build:
test:
docker:
# specify the version
- image: circleci/golang:1.11.1

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

steps:
- checkout

# specify any bash command here prefixed with `run: `
- run: go test ./...
build_docker:
docker:
- image: circleci/docker:18.09
steps:
- checkout
- setup_remote_docker
- run: docker build -t bitfield/uptimerobot:test .
- run: docker push bitfield/uptimerobot:test
workflows:
version: 2
dockerbuild:
jobs:
- test:
filters:
tags:
only: /^v\d+\.\d+\.\d+/
- build_docker:
requires:
- test
filters:
tags:
only: /^v\d+\.\d+\.\d+/

0 comments on commit 68d4ad1

Please sign in to comment.