mirror of
https://github.com/Maronato/go-finger.git
synced 2025-03-15 00:34:47 +00:00
Merge pull request #1 from ArtemStepanov/feat/github-packaging
Feat/GitHub packaging
This commit is contained in:
commit
321bc0f931
1 changed files with 6 additions and 12 deletions
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
|
@ -1,6 +1,7 @@
|
|||
name: Release
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
@ -25,17 +26,12 @@ jobs:
|
|||
name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- # https://github.com/docker/login-action
|
||||
name: Log in to the Container registry
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
# Maybe there is a default env var for this?
|
||||
registry: git.maronato.dev
|
||||
username: ${{ github.repository_owner }}}
|
||||
# Ideally, we should only need to set "permissions: package: write", but
|
||||
# Gitea is having issues with that. For now, this is a manually created
|
||||
# token available user-wise, with the "package:write" permission.
|
||||
password: ${{ secrets.PACKAGE_WRITE_TOKEN }}
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- # https://github.com/docker/metadata-action
|
||||
# Generate tags and labels for the image
|
||||
# according to the commit and the branch
|
||||
|
@ -43,9 +39,7 @@ jobs:
|
|||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
# The container image name needs the custom registry in it.
|
||||
# Maybe there is a default env var for this?
|
||||
images: git.maronato.dev/${{ github.repository }}
|
||||
images: ghcr.io/${{ github.repository }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
|
|
Loading…
Add table
Reference in a new issue