Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
  • Loading branch information
tormath1 committed Mar 9, 2023
1 parent 2547272 commit d981cfb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build CAPO supported images
on:
schedule:
# run on Monday at 7
- cron: '0 7 * * 1'
workflow_dispatch:

jobs:
builds:
runs-on: ubuntu-latest
strategy:
matrix:
kubernetes_version: ["1.25", "1.26"]
os: ["flatcar", "ubuntu"]
steps:
- name: set up QEMU
uses: docker/setup-qemu-action@v2
- name: checkout
uses: actions/checkout@v3
- name: build
run: |
make ${{ matrix.os }}-${{ matrix.kubernetes_version }}
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ clean-temporary: ## Remove all temporary files and folders
rm -f minikube.kubeconfig
rm -f kubeconfig
rm -rf _artifacts
rm -rf images

.PHONY: clean-release
clean-release: ## Remove the release folder
Expand Down Expand Up @@ -519,3 +520,21 @@ compile-e2e: ## Test e2e compilation

.PHONY: FORCE
FORCE:

.PHONY: flatcar-1.26
flatcar-1.26: ## build flatcar images using latest Stable release
@mkdir --parents ./docker-output
@sudo docker run --privileged --net host -v "${PWD}/docker-output:/output" -v /dev:/dev --rm -e PACKER_LOG=1 -e PACKER_FLAGS="--var 'kubernetes_semver=v1.26.2' --var 'kubernetes_series=v1.26'" -e OEM_ID=openstack tormath1/cluster-node-image-builder-amd64 build-qemu-flatcar
@ls -ali ./docker-output

.PHONY: flatcar-1.25
flatcar-1.25: ## build flatcar images using latest Stable release
echo building-flatcar-1.25

.PHONY: ubuntu-1.26
ubuntu-1.26: ## build ubuntu images
echo building-ubuntu-1.26

.PHONY: ubuntu-1.25
ubuntu-1.25: ## build ubuntu images
echo building-ubuntu-1.25

0 comments on commit d981cfb

Please sign in to comment.