Skip to content

Commit

Permalink
Fix the failed image build workflow (#6052)
Browse files Browse the repository at this point in the history
* fix: simplify the watched directory by watching the whole bookstore dir

* fix: We are only providing the builds for linux platform
  • Loading branch information
Leo6Leo authored Jul 12, 2024
1 parent 1b4eb70 commit e7ccae8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/knative-docs-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -60,14 +59,14 @@ 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

- 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
platforms: linux/amd64,linux/arm64
context: ./code-samples/eventing/bookstore-sample-app/solution/node-server
tags: ghcr.io/knative/node-server:latest

0 comments on commit e7ccae8

Please sign in to comment.