Skip to content

Commit

Permalink
Update github actions to work with new builds
Browse files Browse the repository at this point in the history
e2e:
- Enable buildx.
- Build only for linux/amd64 and export the built image.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
  • Loading branch information
darkowlzz committed Oct 12, 2021
1 parent 2193b63 commit 8d89ab2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
buildkitd-flags: "--debug"
- name: Restore Go cache
uses: actions/cache@v1
with:
Expand Down Expand Up @@ -44,7 +53,7 @@ jobs:
exit 1
fi
- name: Build container image
run: make docker-build IMG=test/kustomize-controller:latest
run: make docker-build IMG=test/kustomize-controller:latest BUILD_PLATFORMS=linux/amd64 BUILD_ARGS=--load
- name: Load test image
run: kind load docker-image test/kustomize-controller:latest
- name: Install CRDs
Expand Down

0 comments on commit 8d89ab2

Please sign in to comment.