From df901258a58da9f4f21530d23d0fc0502efd6199 Mon Sep 17 00:00:00 2001 From: irumaru Date: Mon, 24 Jun 2024 19:34:32 +0000 Subject: [PATCH] Update container registry --- .github/workflows/build.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d0edd75..710bef0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,7 +10,8 @@ jobs: build: runs-on: ubuntu-latest env: - IMAGE: "gitlab-registry.maruru.me/nsslums/cit-bot:${{ github.sha }}" + REGISTRY: ghcr.io + IMAGE: "${{ github.repository }}:${{ github.sha }}" # このリポジトリに対する書き込み権限を付与 permissions: contents: write @@ -21,9 +22,9 @@ jobs: - name: Login GitHub Packages uses: docker/login-action@v3 with: - registry: gitlab-registry.maruru.me - username: ${{ secrets.GITLAB_USERNAME }} - password: ${{ secrets.GITLAB_TOKEN }} + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2