Skip to content

Commit

Permalink
Fix Goreleaser (authentication)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdeme committed Nov 27, 2023
1 parent f3a6677 commit cd3cc46
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,7 @@ inputs:

runs:
using: composite
steps:
- name: Run GoReleaser
uses: ./.github/workflows/goreleaser
with:
snapshot: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') }}
bugsnag_api_key: ${{ inputs.bugsnag_api_key }}
repository_url: ${{ inputs.ecr_repository_url }}
github_token: ${{ inputs.github_token }}
disable_github_release: ${{ !startsWith(github.ref, 'refs/tags/') }}

steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
Expand All @@ -53,7 +44,16 @@ runs:
- name: Log in to Amazon public ECR
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
shell: bash
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws

- name: Run GoReleaser
uses: ./.github/workflows/goreleaser
with:
snapshot: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') }}
bugsnag_api_key: ${{ inputs.bugsnag_api_key }}
repository_url: ${{ inputs.ecr_repository_url }}
github_token: ${{ inputs.github_token }}
disable_github_release: ${{ !startsWith(github.ref, 'refs/tags/') }}

- name: Import the PGP key
shell: bash
Expand Down

0 comments on commit cd3cc46

Please sign in to comment.