mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
feat(CI): Package docker containers to GHCR for PRs. (#8588)
This commit is contained in:
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@@ -395,3 +395,25 @@ jobs:
|
||||
minimum-change-threshold: '1000'
|
||||
compression: 'none'
|
||||
clean-script: 'clean'
|
||||
package_docker:
|
||||
name: 'Package Docker'
|
||||
runs-on: 'self-hosted'
|
||||
|
||||
permissions:
|
||||
contents: 'read'
|
||||
packages: 'write'
|
||||
|
||||
if: |-
|
||||
${{ always() && (github.event.pull_request.head.repo.full_name == github.repository) }}
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: 'Push Docker to GHCR'
|
||||
uses: './.github/actions/push-docker'
|
||||
with:
|
||||
github-actor: '${{ github.actor }}'
|
||||
github-secret: '${{ secrets.GITHUB_TOKEN }}'
|
||||
ref-name: '${{ github.ref_name }}'
|
||||
github-sha: '${{ github.sha }}'
|
||||
|
||||
Reference in New Issue
Block a user