Update publish-release.yml

This commit is contained in:
Adel Salakh 2025-05-14 22:21:20 +02:00 committed by GitHub
parent 14d5355655
commit a395660e67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 7 deletions

View File

@ -30,7 +30,7 @@ jobs:
run: | run: |
# Set up github-actions[bot] user # Set up github-actions[bot] user
git config --local user.name "github-actions[bot]" 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 # Get the version from the branch name
branch="${{ github.event.pull_request.head.ref }}" branch="${{ github.event.pull_request.head.ref }}"
@ -99,6 +99,7 @@ jobs:
needs: publish needs: publish
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
@ -106,6 +107,12 @@ jobs:
fetch-depth: 0 fetch-depth: 0
fetch-tags: true 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 - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
@ -113,12 +120,11 @@ jobs:
id: buildx id: buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to quay.io - name: Login to ECR
uses: docker/login-action@v3 id: ecr_login
uses: aws-actions/amazon-ecr-login@v1
with: with:
registry: quay.io/oauth2-proxy mask-password: 'true'
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build images - name: Build images
run: | run: |