Skip to content

Commit

Permalink
ci: fix proji path and env variable in circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoksr committed Jun 18, 2020
1 parent f217e8f commit 14fe1cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ jobs:
- run:
name: Build proji
command: go build -v .
command: |
mkdir bin/
go build -v -o bin/ .
- run:
name: Initialize proji
command: proji init
command: |
./bin/proji init
- run:
name: Run go vet
Expand Down Expand Up @@ -65,7 +68,7 @@ jobs:
- run:
name: Run GoReleaser
command: sudo docker run --rm --privileged -e GITHUB_TOKEN=${PROJI_GH_TOKEN} -v ${CIRCLE_WORKING_DIRECTORY}/.snapcraft.login:/.snapcraft.login -v ${CIRCLE_WORKING_DIRECTORY}:/go/src/github.com/nikoksr/proji -v /var/run/docker.sock:/var/run/docker.sock -w /go/src/github.com/nikoksr/proji neilotoole/xcgo:latest goreleaser --rm-dist
command: sudo docker run --rm --privileged -e GITHUB_TOKEN=${GH_GORELEASER_TOKEN} -v ${CIRCLE_WORKING_DIRECTORY}/.snapcraft.login:/.snapcraft.login -v ${CIRCLE_WORKING_DIRECTORY}:/go/src/github.com/nikoksr/proji -v /var/run/docker.sock:/var/run/docker.sock -w /go/src/github.com/nikoksr/proji neilotoole/xcgo:latest goreleaser --rm-dist

workflows:
version: 2
Expand Down

0 comments on commit 14fe1cf

Please sign in to comment.