diff --git a/.github/workflows/docker_publish.yaml b/.github/workflows/docker_publish.yaml index d809951345..b77ab928bb 100644 --- a/.github/workflows/docker_publish.yaml +++ b/.github/workflows/docker_publish.yaml @@ -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):