8000 ci: set up and build with k3s · docker/setup-buildx-action@5bb6d36 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5bb6d36

Browse files
committed
ci: set up and build with k3s
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
1 parent a99c5e5 commit 5bb6d36

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,3 +496,53 @@ jobs:
496496
uses: ./
497497
with:
498498
cleanup: ${{ matrix.cleanup }}
499+
500+
k3s:
501+
runs-on: ubuntu-20.04
502+
strategy:
503+
fail-fast: false
504+
matrix:
505+
version:
506+
- v0.11.0-rc1
507+
- v0.10.5
508+
steps:
509+
-
510+
name: Checkout
511+
uses: actions/checkout@v3
512+
-
513+
name: Install k3s
514+
uses: crazy-max/.github/.github/actions/install-k3s@605d30d5ae97f6680578ace4b56645af79343e60
515+
with:
516+
version: "v1.21.2-k3s1"
517+
-
518+
name: Set up Docker Buildx
519+
id: buildx
520+
uses: ./
521+
with:
522+
version: ${{ matrix.version }}
523+
driver: kubernetes
524+
platforms: linux/amd64
525+
driver-opts: |
526+
image=moby/buildkit:buildx-stable-1
527+
qemu.install=true
528+
append: |
529+
- platforms: linux/arm64
530+
driver-opts:
531+
- image=moby/buildkit:buildx-stable-1
532+
- qemu.install=true
533+
- platforms: linux/s390x
534+
driver-opts:
535+
- image=moby/buildkit:buildx-stable-1
536+
- qemu.install=true
537+
-
538+
name: Create Dockerfile
539+
run: |
540+
cat > ./Dockerfile <<EOL
541+
FROM alpine
542+
RUN uname -a
543+
EOL
544+
-
545+
name: Build
546+
uses: docker/build-push-action@master
547+
with:
548+
context: .

0 commit comments

Comments
 (0)
0