File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1+ [safe ]
2+ directory = /go/src/github.com/yannh/redis-dump-go
Original file line number Diff line number Diff line change 11name : ci
22on : push
3+
4+ permissions :
5+ contents : read
6+
37jobs :
48 test :
59 runs-on : ubuntu-latest
3539 echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
3640 make release
3741 env :
38- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ docker-build-static:
3838docker run -t -v $$ PWD:/go/src/github.com/yannh/redis-dump-go -w /go/src/github.com/yannh/redis-dump-go golang:1.18 make build-static
3939
4040docker-build-generator-static :
41- docker run -t -v $$ PWD:/go/src/github.com/yannh/redis-dump-go -w /go/src/github.com/yannh/redis-dump-go golang:1.18 make build-generator-static
41+ docker run -t -v $$ PWD/.gitconfig:/root/ -v $$ PWD :/go/src/github.com/yannh/redis-dump-go -w /go/src/github.com/yannh/redis-dump-go golang:1.18 make build-generator-static
4242
4343goreleaser-build-static :
44- docker run -e GOCACHE=/tmp -u ` id -u ` -t -v $$ PWD:/go/src/github.com/yannh/redis-dump-go -w /go/src/github.com/yannh/redis-dump-go goreleaser/goreleaser:v1.8.3 build --single-target --skip-post-hooks --rm-dist --snapshot
44+ docker run -e GOCACHE=/tmp -v $$ PWD/.gitconfig:/root/.gitconfig -t -v $$ PWD:/go/src/github.com/yannh/redis-dump-go -w /go/src/github.com/yannh/redis-dump-go goreleaser/goreleaser:v1.8.3 build --single-target --skip-post-hooks --rm-dist --snapshot
4545cp dist/redis-dump-go_linux_amd64_v1/redis-dump-go bin/
4646
4747release :
48- docker run -e GOCACHE=/tmp -u ` id -u ` -e GITHUB_TOKEN -t -v /var/run/docker.sock:/var/run/docker.sock -v $$ PWD:/go/src/github.com/yannh/redis-dump-go -w /go/src/github.com/yannh/redis-dump-go goreleaser/goreleaser:v1.8.3 release --rm-dist
48+ docker run -e GITHUB_TOKEN -t -v $$ PWD/.gitconfig:/root/.gitconfig -v /var/run/docker.sock:/var/run/docker.sock -v $$ PWD:/go/src/github.com/yannh/redis-dump-go -w /go/src/github.com/yannh/redis-dump-go goreleaser/goreleaser:v1.8.3 release --rm-dist
4949
5050acceptance-tests : docker-build-static docker-build-generator-static
5151docker-compose run tests
You can’t perform that action at this time.
0 commit comments