goreleaser: changed aws creds passing

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-05-01 12:30:54 -07:00
parent b024d2ba39
commit 74b3f3acdf
2 changed files with 6 additions and 6 deletions

View File

@ -18,15 +18,12 @@ jobs:
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.16 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 - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2 uses: goreleaser/goreleaser-action@v2
with: with:
args: release --rm-dist --debug args: release --rm-dist --debug
env: env:
GITHUB_TOKEN: ${{ secrets.DAGGERCI_TOKEN }} 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

View File

@ -73,3 +73,6 @@ publishers:
env: env:
- PATH={{ .Env.PATH }} - PATH={{ .Env.PATH }}
- AWS_EC2_METADATA_DISABLED=true - 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 }}