Skip to content

Commit

Permalink
push image to public ecr repo (AcalaNetwork#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolution1 authored Jul 1, 2024
1 parent 59d4f60 commit 92c0744
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: release

on:
push:
branches:
- master
tags:
- v*
branches: [master]
tags: ["*"]

env:
ECR_REPO: public.ecr.aws/altlayer/subway
GHCR_REPO: ghcr.io/${{ github.repository_owner }}/subway

jobs:
Expand All @@ -18,19 +17,27 @@ jobs:
with:
submodules: recursive

- name: login to ecr
uses: docker/login-action@v3
with:
registry: public.ecr.aws
username: ${{ secrets.ECR_ACCESS_KEY_ID }}
password: ${{ secrets.ECR_ACCESS_KEY }}

- name: login to ghcr
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.GHCR_REPO }}
${{ env.ECR_REPO }}
tags: |
type=ref,event=branch
type=ref,event=pr
Expand Down

0 comments on commit 92c0744

Please sign in to comment.