@@ -2,10 +2,15 @@ name: Agent image
22
33on :
44 push :
5- branches : [main]
6- paths : ["docker/agent/**", ".github/workflows/agent-image.yml"]
5+ branches :
6+ - main
7+ paths :
8+ - " docker/agent/**"
9+ - " .github/workflows/agent-image.yml"
710 pull_request :
8- paths : ["docker/agent/**", ".github/workflows/agent-image.yml"]
11+ paths :
12+ - " docker/agent/**"
13+ - " .github/workflows/agent-image.yml"
914 workflow_dispatch :
1015
1116permissions :
@@ -21,15 +26,17 @@ jobs:
2126 attestations : write
2227 strategy :
2328 matrix :
24- agent : [claude, codex]
29+ agent :
30+ - claude
31+ - codex
2532 steps :
2633 - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2734 with :
2835 persist-credentials : false
2936 - uses : docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
3037 - uses : docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
3138 - uses : docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
32- if : github.event_name != 'pull_request'
39+ if : ${{ github.event_name != 'pull_request' }}
3340 with :
3441 registry : ghcr.io
3542 username : ${{ github.actor }}
4653 ghcr.io/${{ github.repository }}-agent:${{ matrix.agent }}
4754 ghcr.io/${{ github.repository }}-agent:${{ matrix.agent }}-${{ github.sha }}
4855 - uses : actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
49- if : github.event_name != 'pull_request'
56+ if : ${{ github.event_name != 'pull_request' }}
5057 with :
5158 subject-name : ghcr.io/${{ github.repository }}-agent
5259 subject-digest : ${{ steps.push.outputs.digest }}
5663 # through a reviewed pull request.
5764 pin :
5865 needs : image
59- if : github.event_name != 'pull_request'
66+ if : ${{ github.event_name != 'pull_request' }}
6067 runs-on : ubuntu-latest
6168 permissions :
6269 contents : write
0 commit comments