From cd3cc46582bf25096fc0cf9d88387d134eb20af2 Mon Sep 17 00:00:00 2001 From: peterdeme Date: Mon, 27 Nov 2023 13:02:23 +0100 Subject: [PATCH] Fix Goreleaser (authentication) --- .github/workflows/publish/action.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish/action.yml b/.github/workflows/publish/action.yml index cccbfc7..aea2174 100644 --- a/.github/workflows/publish/action.yml +++ b/.github/workflows/publish/action.yml @@ -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/') }} @@ -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