Skip to content

Commit 81c49c8

Browse files
Yolean k8s-qaclaude
andcommitted
CI: build y-kustomize image on push, temporarily include branch
Adds y-kustomize job to images workflow: go build + contain build --push to ghcr.io/yolean/y-kustomize:$SHA Temporarily triggers on y-converge-checks-dag branch pushes. Push will fail on YoleanAgents fork (no ghcr.io/yolean write access) but validates the build succeeds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e32c211 commit 81c49c8

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/images.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,38 @@ on:
44
push:
55
branches:
66
- main
7+
- y-converge-checks-dag
78

89
jobs:
910
checks:
1011
uses: ./.github/workflows/checks.yaml
12+
y-kustomize:
13+
needs: checks
14+
runs-on: ubuntu-latest
15+
permissions:
16+
packages: write
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-go@v5
20+
with:
21+
go-version: '1.26'
22+
- name: Login to GitHub Container Registry
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.repository_owner }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Build Go binary
29+
working-directory: y-kustomize/cmd
30+
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags='-s -w' -o target/linux/amd64/y-kustomize .
31+
- name: Build and push image
32+
working-directory: y-kustomize/cmd
33+
env:
34+
YSTACK_HOME: ${{ github.workspace }}
35+
PATH: ${{ github.workspace }}/bin:/usr/local/bin:/usr/bin:/bin
36+
run: |
37+
IMAGE=ghcr.io/yolean/y-kustomize:${{ github.sha }} \
38+
y-contain build --push
1139
docker:
1240
needs: checks
1341
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)