Fix the failed image build workflow (#6052)

* fix: simplify the watched directory by watching the whole bookstore dir

* fix: We are only providing the builds for linux platform
This commit is contained in:
Leo Li 2024-07-12 01:46:21 -04:00 committed by GitHub
parent 1b4eb70c35
commit e7ccae85fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

View File

@ -5,8 +5,7 @@ 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/**"
- "code-samples/eventing/bookstore-sample-app/**"
- "docs/serving/autoscaling/autoscale-go/**"
- "hack/docker/**"
- ".github/workflows/knative-docs-image.yaml"
@ -60,7 +59,7 @@ jobs:
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
platforms: linux/amd64,linux/arm64
context: ./code-samples/eventing/bookstore-sample-app/solution/frontend
tags: ghcr.io/knative/bookstore-frontend:latest
@ -68,6 +67,6 @@ jobs:
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
platforms: linux/amd64,linux/arm64
context: ./code-samples/eventing/bookstore-sample-app/solution/node-server
tags: ghcr.io/knative/node-server:latest