-
-
Notifications
You must be signed in to change notification settings - Fork 121
45 lines (43 loc) · 1.32 KB
/
mirror.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Mirror Image
on:
workflow_dispatch:
inputs:
version:
description: 'Image tag'
required: true
type: string
jobs:
mirror:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Login to DockerHub
uses: docker/#-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
aws-region: 'us-east-1'
- uses: docker/#-action@v2
with:
registry: public.ecr.aws
- uses: docker/#-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: akhilerm/tag-push-action@v2.1.0
with:
src: docker.io/supabase/storage-api:${{ inputs.version }}
dst: |
public.ecr.aws/supabase/storage-api:${{ inputs.version }}
public.ecr.aws/supabase/storage-api:latest
docker.io/supabase/storage-api:latest
ghcr.io/supabase/storage-api:${{ inputs.version }}
ghcr.io/supabase/storage-api:latest