-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74b3067
commit 8c924e5
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ on: | |
push: | ||
pull_request: | ||
|
||
permissions: | ||
# ghcr.io | ||
packages: write | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-22.04 | ||
|
@@ -36,3 +40,30 @@ jobs: | |
with: | ||
name: ${{ github.event.repository.name }} | ||
path: dist/* | ||
docker: | ||
runs-on: ubuntu-22.04 | ||
needs: | ||
- build | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: docker/[email protected] | ||
- uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
- uses: docker/[email protected] | ||
id: meta | ||
with: | ||
images: ghcr.io/${{ github.repository }} | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=sha,format=short,prefix= | ||
type=raw,value=latest,enable={{ is_default_branch }} | ||
- uses: docker/[email protected] | ||
- uses: docker/[email protected] | ||
if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) == github.ref || startsWith(github.ref, 'refs/tags/') }} | ||
with: | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} |