Skip to content

Commit

Permalink
task: added push to public.ecr (#9105)
Browse files Browse the repository at this point in the history
Fixes #6530
  • Loading branch information
chriswk authored Jan 16, 2025
1 parent 50ab2c9 commit 533730c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/docker_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 != '' }}
Expand All @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 533730c

Please sign in to comment.