From a395660e671ab73fab05749955b155424c90a71c Mon Sep 17 00:00:00 2001 From: Adel Salakh Date: Wed, 14 May 2025 22:21:20 +0200 Subject: [PATCH] Update publish-release.yml --- .github/workflows/publish-release.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 5e23d8ad..35f38b40 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -30,7 +30,7 @@ jobs: run: | # Set up github-actions[bot] user git config --local user.name "github-actions[bot]" - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.email "github-actions[bot]@users.noreply.github.com" # Get the version from the branch name branch="${{ github.event.pull_request.head.ref }}" @@ -99,6 +99,7 @@ jobs: needs: publish runs-on: ubuntu-latest steps: + - name: Check out code uses: actions/checkout@v4 with: @@ -106,19 +107,24 @@ jobs: fetch-depth: 0 fetch-tags: true + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ vars.AWS_ECR_ROLE }} + aws-region: ${{ vars.AWS_REGION }} + - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v3 - - - name: Login to quay.io - uses: docker/login-action@v3 + + - name: Login to ECR + id: ecr_login + uses: aws-actions/amazon-ecr-login@v1 with: - registry: quay.io/oauth2-proxy - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_PASSWORD }} + mask-password: 'true' - name: Build images run: |