-
Notifications
You must be signed in to change notification settings - Fork 429
40 lines (37 loc) · 1.04 KB
/
tools-releases.yml
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
name: Kubernetes Tools Releases for controller-runtime envtest
on:
push:
branches:
- tools-releases
env:
KUBERNETES_VERSION: 1.28.0
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: [ linux darwin windows ]
arch: [ amd64 arm64 ]
include:
- arch: ppc64le
os: linux
- arch: s390x
os: linux
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
context: .
file: ./hack/tools/envtest/${{matrix.os}}/Dockerfile
build-args: |
KUBERNETES_VERSION=v${KUBERNETES_VERSION}
OS=${{matrix.os}}
ARCH=${{matrix.arch}}
push: true
tags: |
ghcr.io/kubernetes-sigs/controller-tools/kubernetes-${{matrix.os}}-${{matrix.arch}}:${{env.KUBERNETES_VERSION}}