Update publish-release.yml
This commit is contained in:
parent
14d5355655
commit
a395660e67
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue