Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
chore: add image mirror job
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Dec 2, 2022
1 parent 673c54e commit 315d979
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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
steps:
- uses: docker/login-action@v2
with:
registry: public.ecr.aws
username: ${{ secrets.PROD_ACCESS_KEY_ID }}
password: ${{ secrets.PROD_SECRET_ACCESS_KEY }}
- uses: docker/login-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/deno-relay:${{ inputs.version }}
dst: |
public.ecr.aws/supabase/deno-relay:${{ inputs.version }}
ghcr.io/supabase/deno-relay:${{ inputs.version }}

0 comments on commit 315d979

Please sign in to comment.