From c6e2180d59c97a73d2b38df3eee72378fd5a5a93 Mon Sep 17 00:00:00 2001 From: Artem Date: Mon, 7 Oct 2024 15:33:50 +0300 Subject: [PATCH 1/2] Update Docker registry login in release workflow --- .github/workflows/release.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14efae8..f4491b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,17 +25,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 +38,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 From 1fb92ffea25c446f4cb0937e45547b5b3bf0140b Mon Sep 17 00:00:00 2001 From: Artem Date: Mon, 7 Oct 2024 15:47:31 +0300 Subject: [PATCH 2/2] Update release workflow to trigger on manual workflow dispatch --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4491b6..b276550 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: Release # Controls when the workflow will run on: + workflow_dispatch: release: types: - published