Skip to content

Commit e866d8f

Browse files
committed
chore: mirror image to ghcr
1 parent d280db7 commit e866d8f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,17 @@ jobs:
6767
- semantic-release
6868
if: needs.semantic-release.outputs.new-release-published == 'true'
6969
runs-on: ubuntu-latest
70+
permissions:
71+
contents: read
72+
packages: write
7073
steps:
7174
- id: meta
7275
uses: docker/metadata-action@v4
7376
with:
7477
images: |
7578
supabase/postgres-meta
76-
public.ecr.aws/t3w2s2c9/postgres-meta
79+
public.ecr.aws/supabase/postgres-meta
80+
ghcr.io/supabase/postgres-meta
7781
tags: |
7882
type=raw,value=v${{ needs.semantic-release.outputs.new-release-version }}
7983
@@ -95,6 +99,13 @@ jobs:
9599
username: ${{ secrets.PROD_ACCESS_KEY_ID }}
96100
password: ${{ secrets.PROD_SECRET_ACCESS_KEY }}
97101

102+
- name: Login to GHCR
103+
uses: docker/login-action@v2
104+
with:
105+
registry: ghcr.io
106+
username: ${{ github.actor }}
107+
password: ${{ secrets.GITHUB_TOKEN }}
108+
98109
- uses: docker/build-push-action@v3
99110
with:
100111
push: true

0 commit comments

Comments
 (0)