Skip to content

Commit

Permalink
Push docker image to ghcr (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy authored Mar 18, 2023
1 parent 093a91b commit 0e364dd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: harryzcy/mailbox-browser
images: |
harryzcy/mailbox-browser
ghcr.io/harryzcy/mailbox-browser
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
Expand All @@ -80,6 +82,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

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

- name: Build and push
uses: docker/build-push-action@v4
with:
Expand Down

0 comments on commit 0e364dd

Please sign in to comment.