forked from k3d-io/k3d
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (65 loc) · 2.12 KB
/
k3s-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: K3S GPU/CPU RELEASE
on:
workflow_dispatch:
env:
K3S_CPU_IMG: ghcr.io/turintech/k3s:v1.27.4-k3s1
K3S_GPU_IMG: ghcr.io/turintech/k3s:v1.27.4-k3s1-cuda
K3S_TAG: v1.27.4-k3s1
NVIDIA_CONTAINER_RUNTIME_VERSION: 3.7.0-1
NVIDIA_IMAGE: nvidia/cuda:11.8.0-base-ubuntu22.04
jobs:
publish-image-cpu:
runs-on: ubuntu-latest
name: publish k3s cpu image
steps:
- name: Checkout current repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Github packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./docs/usage/advanced/cuda
file: ./docs/usage/advanced/cuda/Dockerfile-cpu
push: true
tags: |
${{env.K3S_CPU_IMG}}
build-args: |
K3S_TAG=${{env.K3S_TAG}}
platforms: linux/amd64,linux/arm64
publish-image-gpu:
runs-on: ubuntu-latest
name: publish k3s gpu image
steps:
- name: Checkout current repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Github packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./docs/usage/advanced/cuda
file: ./docs/usage/advanced/cuda/Dockerfile
push: true
tags: |
${{env.K3S_GPU_IMG}}
build-args: |
K3S_TAG=${{env.K3S_TAG}}
NVIDIA_CONTAINER_RUNTIME_VERSION=${{env.NVIDIA_CONTAINER_RUNTIME_VERSION}}
platforms: linux/amd64,linux/arm64