Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/publish_dev_docker_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
push_to_registry:
name: Push Docker image to GitHub Container Registry(dev)
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
-
name: Check out the repo
Expand All @@ -24,7 +29,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push to GitHub Container Registry
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/publish_docker_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
push_to_registry:
name: Push Docker image to GitHub Container Registry(latest)
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
-
name: Check out the repo
Expand All @@ -29,7 +34,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push to GitHub Container Registry
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ find . -type f | xargs sed -i '' -e "s/go-template/example/g"

### DockerイメージをGitHub Container Registryで公開する際の注意点

デフォルトでは`CR_PAT`が渡されないためGitHub Actionsでのイメージのビルド/プッシュに失敗します。
また、パッケージを公開したい場合は初回のみ手作業が必要です。

このためDockerイメージをGitHub Container Registryで公開したい場合はオーガニゼーション管理者にご相談ください。
DockerイメージをGitHub Container Registryで公開したい場合はオーガニゼーション管理者にご相談ください。
パッケージを公開したい場合は初回のみ手作業が必要です。

## License

Expand Down