From c7b9e6c3a170c473a30e9e17b809cb00f5c51179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E7=89=B9=E6=B5=A9=E5=80=AA?= Date: Mon, 5 Feb 2024 17:51:52 +0800 Subject: [PATCH] new to ghcr --- .github/workflows/docker-publish.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 2e96a46..7eafa6f 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -23,6 +23,13 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Get the Ref id: tag-gen uses: ankitvgupta/ref-to-tag-action@master @@ -41,4 +48,6 @@ jobs: tags: | mattholy/wand:${{ steps.tag-gen.outputs.tag }} mattholy/wand:latest + ghcr.io/mattholy/wand:${{ steps.tag-gen.outputs.tag }} + ghcr.io/mattholy/wand:latest build-args: VERSION=${{ steps.tag-gen.outputs.tag }}