Skip to content

Commit

Permalink
Merge pull request #140 from CPCTF/feat/push_ghcr
Browse files Browse the repository at this point in the history
✨ リリース時にghcr.ioにpushするように変更
  • Loading branch information
ikura-hamu authored May 5, 2024
2 parents 7777689 + 5e0229b commit 1a6c49f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
tags:
- v*.*.*


jobs:
image:
name: Build App Image
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 1a6c49f

Please sign in to comment.