From 74b3f3acdfbd60d62d633875988c53d5eabc9526 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Sat, 1 May 2021 12:30:54 -0700 Subject: [PATCH] goreleaser: changed aws creds passing Signed-off-by: Sam Alba --- .github/workflows/release.yml | 9 +++------ .goreleaser.yml | 3 +++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bda57d24..4ba96499 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,15 +18,12 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.16 - - name: Configure AWS cli - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: args: release --rm-dist --debug env: GITHUB_TOKEN: ${{ secrets.DAGGERCI_TOKEN }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: us-east-1 diff --git a/.goreleaser.yml b/.goreleaser.yml index 3fe8c4a9..0d836747 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -73,3 +73,6 @@ publishers: env: - PATH={{ .Env.PATH }} - AWS_EC2_METADATA_DISABLED=true + - AWS_ACCESS_KEY_ID={{ .Env.AWS_ACCESS_KEY_ID }} + - AWS_SECRET_ACCESS_KEY={{ .Env.AWS_SECRET_ACCESS_KEY }} + - AWS_REGION={{ .Env.AWS_REGION }}