From 0804fc50d0384a4a0c4ee881d2ccb302000d12df Mon Sep 17 00:00:00 2001 From: Leo Li Date: Tue, 9 Jul 2024 17:35:11 -0400 Subject: [PATCH] Use the knative's release image registry for the pre-build image (#6048) * fix: Update the github workflow to build the release images for the sample app * fix: Update the github workflow to build the release images for the sample app --- .github/workflows/knative-docs-image.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/knative-docs-image.yaml b/.github/workflows/knative-docs-image.yaml index bb07d14f0b..8525d70325 100644 --- a/.github/workflows/knative-docs-image.yaml +++ b/.github/workflows/knative-docs-image.yaml @@ -5,6 +5,8 @@ on: branches: ['main'] paths: - "code-samples/serving/hello-world/helloworld-go/**" + - "code-samples/eventing/bookstore-sample-app/solution/frontend/**" + - "code-samples/eventing/bookstore-sample-app/solution/node-server/**" - "docs/serving/autoscaling/autoscale-go/**" - "hack/docker/**" - ".github/workflows/knative-docs-image.yaml" @@ -53,3 +55,19 @@ jobs: platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x context: ./docs/serving/autoscaling/autoscale-go tags: ghcr.io/knative/autoscale-go:latest + + - name: Build sample-app's frontend image + uses: docker/build-push-action@v4 + with: + push: true + platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x, windows/amd64, windows/arm64, darwin/amd64, darwin/arm64 + context: ./code-samples/eventing/bookstore-sample-app/solution/frontend + tags: ghcr.io/knative/bookstore-frontend:latest + + - name: Build sample-app's node-server image + uses: docker/build-push-action@v4 + with: + push: true + platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x, windows/amd64, windows/arm64, darwin/amd64, darwin/arm64 + context: ./code-samples/eventing/bookstore-sample-app/solution/node-server + tags: ghcr.io/knative/node-server:latest