-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to build kind cluster components
- Loading branch information
Showing
2 changed files
with
67 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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/[email protected] | ||
|
||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters