Skip to content

Commit

Permalink
chore: try using ecr actions
Browse files Browse the repository at this point in the history
  • Loading branch information
darora committed Feb 5, 2025
1 parent 68fb487 commit 51507c8
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/qemu-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,21 @@ jobs:
role-to-assume: ${{ secrets.DEV_AWS_ROLE }}
aws-region: "us-east-1"

- uses: docker/setup-buildx-action@v3

- name: Login to ECR
uses: docker/login-action@v2
with:
registry: public.ecr.aws

- id: build
uses: docker/build-push-action@v5
- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v2
with:
file: Dockerfile-kubernetes
push: true
tags: public.ecr.aws/w9p6e7k7/supabase/postgres-v3:${{ steps.process_release_version.outputs.version }}
platforms: linux/arm64
context: .
registry-type: public

- name: Build, tag, and push docker image to Amazon ECR Public
env:
REGISTRY: public.ecr.aws/w9p6e7k7
REGISTRY_ALIAS: supabase
REPOSITORY: postgres-v3
IMAGE_TAG: ${{ steps.process_release_version.outputs.version }}
run: |
docker build -f Dockerfile-kubernetes -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG
# - name: Upload software manifest to s3 staging
# run: |
Expand Down

0 comments on commit 51507c8

Please sign in to comment.