Skip to content

Commit dd305e9

Browse files
committed
chore: add workflow to mirror image
1 parent eb3744d commit dd305e9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/mirror.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Mirror to ECR
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+
steps:
15+
- uses: docker/login-action@v2
16+
with:
17+
registry: public.ecr.aws
18+
username: ${{ secrets.PROD_ACCESS_KEY_ID }}
19+
password: ${{ secrets.PROD_SECRET_ACCESS_KEY }}
20+
- uses: akhilerm/tag-push-action@v2.0.0
21+
with:
22+
src: docker.io/supabase/postgres:${{ inputs.version }}
23+
dst: public.ecr.aws/t3w2s2c9/postgres:${{ inputs.version }}

0 commit comments

Comments
 (0)