Skip to content

Commit

Permalink
Updated to make reliabile in docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjackson committed Dec 17, 2019
1 parent a4c5b31 commit d98fdc8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
paths:
- product-api-go

release:
publish-docker-release:
docker:
- image: circleci/golang:1.13
environment:
Expand All @@ -42,12 +42,12 @@ jobs:
- run:
name: docker push
command: |
docker push hashicorpdemoapp/product-api:${CIRCLE_TAG} .
docker push hashicorpdemoapp/product-api:${CIRCLE_TAG}
publish-github-release:
docker:
- image: cibuilds/github:0.10
working_directory: ~/go/src/github.com/hashicorpdemoapp/product-api
working_directory: ~/go/src/github.com/hashicorpdemoapp/product-api-go
steps:
- attach_workspace:
at: ~/go/src/github.com/hashicorpdemoapp
Expand All @@ -64,7 +64,7 @@ workflows:
filters:
tags:
only: /.*/
- release:
- publish-docker-release:
requires:
- build-go
filters:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# product-api-go

[![CircleCI](https://circleci.com/gh/hashicorp-demoapp/product-api-go.svg?style=svg)](https://circleci.com/gh/hashicorp-demoapp/product-api-go)

Products API written in Go

## Release process
Pushing a new tag to Github will trigger a release on CircleCI
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func (f *File) watch(filepath string) {
err := f.loadData()
if err != nil {
log.Println("error", err)
return
}

if f.updated != nil {
Expand Down

0 comments on commit d98fdc8

Please sign in to comment.