-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (55 loc) · 1.96 KB
/
kind-dependent-images.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
name: Build kind cluster component images
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
fail-fast: false
env:
# Use docker.io for Docker Hub if empty
IMAGE_REGISTRY: quay.io
# Override Makefile default variables
REGISTRY: quay.io/powercloud
PLATFORMS: linux/ppc64le
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
- name: Log into registry ${{ env.IMAGE_REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Clone and patch kubernetes-sigs/kind repository
run: |
git clone --depth 1 --branch $(cat KIND_VERSION) https://github.com/kubernetes-sigs/kind.git
cd kind
git apply ../build-ppc64le.patch
echo "TAG=$(date +v%Y%m%d)-$(git describe --always)" >> $GITHUB_ENV
- name: Build local-path-provisioner
working-directory: ./kind
run: |
IMAGE_NAME=kind-local-path-provisioner make -C images/local-path-provisioner push
- name: Build local-path-helper
working-directory: ./kind
run: |
IMAGE_NAME=kind-local-path-helper make -C images/local-path-helper push
- name: Build base
working-directory: ./kind
run: |
IMAGE_NAME=kind-base make -C images/base push
- name: Build kindnetd
working-directory: ./kind
run: |
IMAGE_NAME=kind-kindnetd make -C images/kindnetd push
- name: Build haproxy
working-directory: ./kind
run: |
IMAGE_NAME=kind-haproxy make -C images/haproxy push