Skip to content

Commit

Permalink
ci: use host docker credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
turtleDev committed Jul 6, 2024
1 parent 8d9b8d7 commit 89d819a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}
run: |
BUILD_CMD='git config --global --add safe.directory /build/src && cd /build/src && goreleaser release --clean'
echo $BUILD_CMD | docker run -v /var/run/docker.sock:/var/run/docker.sock -e GITHUB_TOKEN="${GITHUB_TOKEN}" -i --entrypoint /bin/bash -v "$PWD/:/build/src" goreleaser/goreleaser-cross:v1.22.4
echo $BUILD_CMD | docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $HOME/.docker:/root/.docker \
-v "$PWD/:/build/src" \
-e GITHUB_TOKEN="${GITHUB_TOKEN}" \
-i --entrypoint /bin/bash \
goreleaser/goreleaser-cross:v1.22.4

0 comments on commit 89d819a

Please sign in to comment.