1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-28 00:17:12 +01:00

task: added push to public.ecr (#9105)

Fixes #6530
This commit is contained in:
Christopher Kolstad 2025-01-16 10:29:07 +01:00 committed by GitHub
parent 50ab2c9d61
commit 533730c18c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ on:
inputs:
version:
description: "Which version to release"
type: 'string'
type: "string"
required: true
is-latest-version:
description: Is this the latest version? If latest we'll update the version docker
@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ 20.18.1-alpine ]
version: [20.18.1-alpine]
steps:
- name: Checkout tag v${{ inputs.version }}
if: ${{ inputs.version != '' }}
@ -34,6 +34,17 @@ jobs:
- name: Checkout
if: ${{ inputs.version == '' }}
uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::726824350591:role/unleash-github-ecr-public-publish-role
role-session-name: edge-actions-push-to-ecr-public
aws-region: us-east-1
- name: Login to AWS ECR
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
- name: Setup QEmu so we can build multiplatform
uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
@ -44,6 +55,7 @@ jobs:
with:
images: |
unleashorg/unleash-server
public.ecr.aws/unleashorg/unleash-server
flavor: latest=${{ github.event.inputs.is-latest-version || 'auto' }}
tags: |
# only enabled for workflow dispatch except main (assume its a release):