From 14fe1cf2d3f1456df40bf8caaed99604ae5b167e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=20K=C3=B6ser?= Date: Thu, 18 Jun 2020 22:41:01 +0200 Subject: [PATCH] ci: fix proji path and env variable in circleci config --- .circleci/config.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1d66b2c0..0e6f1c50 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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