@@ -21,11 +21,11 @@ jobs:
2121 goos : darwin
2222 goarch : amd64
2323 artifact : ccg-darwin-amd64
24- - os : ubuntu-latest
24+ - os : ubuntu-24.04
2525 goos : linux
2626 goarch : amd64
2727 artifact : ccg-linux-amd64
28- - os : ubuntu-latest
28+ - os : ubuntu-24.04
2929 goos : linux
3030 goarch : arm64
3131 artifact : ccg-linux-arm64
@@ -162,6 +162,32 @@ jobs:
162162 steps :
163163 - uses : actions/checkout@v6
164164
165+ - name : Download Linux AMD64 artifact
166+ uses : actions/download-artifact@v4
167+ with :
168+ name : ccg-linux-amd64
169+ path : artifacts/ccg-linux-amd64
170+
171+ - name : Download Linux ARM64 artifact
172+ uses : actions/download-artifact@v4
173+ with :
174+ name : ccg-linux-arm64
175+ path : artifacts/ccg-linux-arm64
176+
177+ - name : Download Wiki artifact
178+ uses : actions/download-artifact@v4
179+ with :
180+ name : ccg-wiki-dist
181+ path : artifacts/ccg-wiki-dist
182+
183+ - name : Prepare container artifacts
184+ shell : bash
185+ run : |
186+ mkdir -p container-artifacts/amd64 container-artifacts/arm64 container-artifacts/wiki
187+ tar xzf artifacts/ccg-linux-amd64/ccg-linux-amd64.tar.gz -C container-artifacts/amd64
188+ tar xzf artifacts/ccg-linux-arm64/ccg-linux-arm64.tar.gz -C container-artifacts/arm64
189+ tar xzf artifacts/ccg-wiki-dist/ccg-wiki-dist.tar.gz -C container-artifacts/wiki
190+
165191 - name : Set up QEMU
166192 uses : docker/setup-qemu-action@v4
167193
@@ -187,14 +213,6 @@ jobs:
187213 type=semver,pattern={{major}}
188214 type=raw,value=latest,enable=${{ !contains(github.ref_name, '-') }}
189215
190- - name : Prepare container build metadata
191- id : build-meta
192- shell : bash
193- run : |
194- echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
195- echo "commit=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
196- echo "date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_OUTPUT"
197-
198216 - name : Build and publish container image
199217 uses : docker/build-push-action@v7
200218 with :
@@ -203,10 +221,6 @@ jobs:
203221 push : true
204222 tags : ${{ steps.metadata.outputs.tags }}
205223 labels : ${{ steps.metadata.outputs.labels }}
206- build-args : |
207- VERSION=${{ steps.build-meta.outputs.version }}
208- COMMIT=${{ steps.build-meta.outputs.commit }}
209- DATE=${{ steps.build-meta.outputs.date }}
210224 cache-from : type=gha
211225 cache-to : type=gha,mode=max
212226
0 commit comments