Skip to content

Commit 87a86df

Browse files
committed
chore: add image mirror job
1 parent e866d8f commit 87a86df

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/mirror.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Mirror Image
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Image tag"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
mirror:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
steps:
18+
- uses: docker/login-action@v2
19+
with:
20+
registry: public.ecr.aws
21+
username: ${{ secrets.PROD_ACCESS_KEY_ID }}
22+
password: ${{ secrets.PROD_SECRET_ACCESS_KEY }}
23+
- uses: docker/login-action@v2
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
- uses: akhilerm/[email protected]
29+
with:
30+
src: docker.io/supabase/postgres-meta:${{ inputs.version }}
31+
dst: |
32+
public.ecr.aws/supabase/postgres-meta:${{ inputs.version }}
33+
ghcr.io/supabase/postgres-meta:${{ inputs.version }}

0 commit comments

Comments
 (0)