Skip to content

Commit

Permalink
ci(change): added separate ecr public build task
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Apr 20, 2023
1 parent 3f27819 commit f5538c6
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/copy-releases-to-ecr-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,26 @@ jobs:
registry-type: public
env:
AWS_DEFAULT_REGION: 'us-east-1'
- name: Push image to ECR
run: |
docker buildx imagetools create \
--tag ${{ steps.login-ecr-public.outputs.registry }}/unleashorg/unleash-proxy:${{ github.event.inputs.version }}
unleashorg/unleash-proxy:${{ github.event.inputs.version }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
env:
REGISTRY: ${{ steps.login-ecr-public-outputs.registry }}
REGISTRY_ALIAS: unleashorg
REPOSITORY: unleash-proxy
with:
images: |
${{ steps.login-ecr-public.outputs.registry }}/unleashorg/unleash-proxy
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/arm64,linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit f5538c6

Please sign in to comment.