From be97ca4a85c1f6a69dd08cf6beb7bf50279b55e2 Mon Sep 17 00:00:00 2001 From: Mick Stanciu Date: Wed, 23 Mar 2022 11:08:18 +1100 Subject: [PATCH] INTG-2169 pass docker arguments (#229) pass docker arguments to goreleaser --- .github/workflows/goreleaser.yml | 4 ++++ Makefile | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 11d4aaaf..00054053 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -25,6 +25,10 @@ jobs: with: go-version: 1.17 + - name: Setup release environment + run: |- + echo 'GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}' >> .release-env + - name: Run GoReleaser run: make release \ docker-user=docker \ diff --git a/Makefile b/Makefile index 47a9a59b..e512b0d6 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,7 @@ release: --env DOCKER_USERNAME=$(docker-user) \ --env DOCKER_PASSWORD=$(docker-password) \ --env DOCKER_HOST=$(docker-host) \ + --env-file .release-env \ -v /var/run/docker.sock:/var/run/docker.sock \ -v `pwd`:/go/src/$(PACKAGE_NAME) \ -w /go/src/$(PACKAGE_NAME) \