diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c119ce..021bb9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,6 @@ on: tags: - v*.*.* - jobs: image: name: Build App Image @@ -19,11 +18,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Google Artifact Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: - registry: asia-northeast1-docker.pkg.dev - username: _json_key - password: ${{ secrets.GAR_SYSTEM_REPOSITORY_ACCOUNT }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v4 with: @@ -32,7 +31,5 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max tags: | - asia-northeast1-docker.pkg.dev/cpctf-338715/system/ssh-separator:${{env.IMAGE_TAG}} - asia-northeast1-docker.pkg.dev/cpctf-338715/system/ssh-separator:latest - - + ghcr.io/cpctf/system/ssh-separator:${{env.IMAGE_TAG}} + ghcr.io/cpctf/system/ssh-separator:latest