Skip to content

Commit

Permalink
Fix goreleaser-cross registry authentication by mounting host Docker …
Browse files Browse the repository at this point in the history
…credentials
  • Loading branch information
danielelisi committed Jun 14, 2023
1 parent a6ea856 commit 515e271
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ vendor/

dist
.release-env
.env
.docker-creds
signatory
signatory-cli
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ release-preview:
--privileged \
-e CGO_ENABLED=1 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(HOME)/.docker/config.json:/root/.docker/config.json \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
Expand All @@ -62,6 +63,7 @@ release:
-e CGO_ENABLED=1 \
--env-file .env \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(HOME)/.docker/config.json:/root/.docker/config.json \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
Expand Down

0 comments on commit 515e271

Please sign in to comment.