diff --git a/.github/workflows/parrot-release.yml b/.github/workflows/parrot-release.yml index 8a689e19d..490436ee8 100644 --- a/.github/workflows/parrot-release.yml +++ b/.github/workflows/parrot-release.yml @@ -1,4 +1,4 @@ -name: Parrotserver Release +name: Parrot Release on: push: @@ -18,9 +18,10 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 with: - aws-region: ${{ secrets.QA_AWS_REGION }} - role-to-assume: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} + aws-region: ${{ secrets.AWS_REGION }} + role-to-assume: ${{ secrets.AWS_OIDC_PUBLISH_ECR_ROLE_ARN }} role-duration-seconds: 600 + mask-aws-account-id: true - name: Login to Amazon ECR uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1 with: @@ -40,5 +41,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} - IMAGE_PREFIX: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/parrot + IMAGE_PREFIX: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/parrot IMAGE_TAG: ${{ github.ref_name}}