-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from zakkg3/fix-build
Fix build
- Loading branch information
Showing
6 changed files
with
211 additions
and
70 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,206 @@ | ||
# Docker build images on tag | ||
name: Test Builds Images | ||
on: [pull_request] | ||
|
||
env: | ||
IMAGE_TAGS: ${{ github.ref_name }} | ||
REGISTRY_USER: clustersecret | ||
IMAGE_REGISTRY: quay.io | ||
IMAGE_NAMESPACE : clustersecret | ||
|
||
jobs: | ||
build-amd64: | ||
name: Build amd64 | ||
runs-on: ubuntu-24.04 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# install_latest: [ true, false ] #ubuntu-20.04 has a good enough podman. | ||
steps: | ||
# Checkout push-to-registry action github repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Install latest podman | ||
# if: matrix.install_latest | ||
# run: | | ||
# bash .github/install_latest_podman.sh | ||
|
||
- name: Install qemu dependency | ||
# we need quemu-user-static for builds other archs with buildah | ||
# /~https://github.com/containers/podman/issues/13924#issuecomment-1103434554 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y qemu-user-static | ||
- name: Build amd64 | ||
id: build_image386 | ||
uses: redhat-actions/buildah-build@main | ||
with: | ||
image: ${{ env.IMAGE_NAMESPACE }} | ||
tags: ${{ env.IMAGE_TAGS }} | ||
platforms: linux/amd64 | ||
containerfiles: | | ||
./Dockerfile.gh | ||
- name: Echo outputs | ||
run: | | ||
echo "${{ toJSON(steps.push-to-quay.outputs) }}" | ||
build-386: | ||
name: Build 386 | ||
runs-on: ubuntu-24.04 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# install_latest: [ true, false ] #ubuntu-20.04 has a good enough podman. | ||
steps: | ||
# Checkout push-to-registry action github repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Install latest podman | ||
# if: matrix.install_latest | ||
# run: | | ||
# bash .github/install_latest_podman.sh | ||
|
||
- name: Install qemu dependency | ||
# we need quemu-user-static for builds other archs with buildah | ||
# /~https://github.com/containers/podman/issues/13924#issuecomment-1103434554 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y qemu-user-static | ||
- name: Build alt Image 386 | ||
id: build_image386 | ||
uses: redhat-actions/buildah-build@main | ||
with: | ||
image: ${{ env.IMAGE_NAMESPACE }} | ||
tags: ${{ env.IMAGE_TAGS }} | ||
platforms: linux/386 | ||
containerfiles: | | ||
./Dockerfile.gh | ||
- name: Echo outputs | ||
run: | | ||
echo "${{ toJSON(steps.push-to-quay.outputs) }}" | ||
build-s390: | ||
name: Builds 390 | ||
runs-on: ubuntu-24.04 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# install_latest: [ true, false ] #ubuntu-20.04 has a good enough podman. | ||
steps: | ||
# Checkout push-to-registry action github repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Install latest podman | ||
# if: matrix.install_latest | ||
# run: | | ||
# bash .github/install_latest_podman.sh | ||
|
||
- name: Install qemu dependency | ||
# we need quemu-user-static for builds other archs with buildah | ||
# /~https://github.com/containers/podman/issues/13924#issuecomment-1103434554 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y qemu-user-static | ||
sudo apt-get install -y rustc | ||
- name: Build alt Image s390 | ||
id: build_image390 | ||
uses: redhat-actions/buildah-build@main | ||
with: | ||
image: ${{ env.IMAGE_NAMESPACE }} | ||
tags: ${{ env.IMAGE_TAGS }} | ||
platforms: linux/s390x | ||
containerfiles: | | ||
./Dockerfile.gh | ||
- name: Echo outputs | ||
run: | | ||
echo "${{ toJSON(steps.push-to-quay.outputs) }}" | ||
build-armv8: | ||
name: Build armv8 | ||
runs-on: ubuntu-24.04 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# install_latest: [ true, false ] #ubuntu-20.04 has a good enough podman. | ||
steps: | ||
# Checkout push-to-registry action github repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Install latest podman | ||
# if: matrix.install_latest | ||
# run: | | ||
# bash .github/install_latest_podman.sh | ||
|
||
- name: Install qemu dependency | ||
# we need quemu-user-static for builds other archs with buildah | ||
# /~https://github.com/containers/podman/issues/13924#issuecomment-1103434554 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y qemu-user-static | ||
sudo apt-get install -y rustc | ||
- name: Build alt Image armv8 | ||
id: build_alt_imagev8 | ||
uses: redhat-actions/buildah-build@main | ||
with: | ||
image: ${{ env.IMAGE_NAMESPACE }} | ||
tags: ${{ env.IMAGE_TAGS }} | ||
platforms: linux/arm64/v8 | ||
containerfiles: | | ||
./Dockerfile.gh | ||
- name: Echo outputs | ||
run: | | ||
echo "${{ toJSON(steps.push-to-quay.outputs) }}" | ||
build-armv7: | ||
name: Build armv7 #note it needs build essentials (uses docker-others) | ||
runs-on: ubuntu-24.04 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# install_latest: [ true, false ] #ubuntu-20.04 has a good enough podman. | ||
steps: | ||
# Checkout push-to-registry action github repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Install latest podman | ||
# if: matrix.install_latest | ||
# run: | | ||
# bash .github/install_latest_podman.sh | ||
|
||
- name: Install qemu dependency | ||
# we need quemu-user-static for builds other archs with buildah | ||
# /~https://github.com/containers/podman/issues/13924#issuecomment-1103434554 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y qemu-user-static | ||
sudo apt-get install -y rustc | ||
- name: Build alt Image armv7 | ||
id: build_alt_imagev7 | ||
uses: redhat-actions/buildah-build@main | ||
with: | ||
image: ${{ env.IMAGE_NAMESPACE }} | ||
tags: ${{ env.IMAGE_TAGS }} | ||
platforms: linux/arm/v7 | ||
containerfiles: | | ||
./Dockerfile-others.gh | ||
- name: Echo outputs | ||
run: | | ||
echo "${{ toJSON(steps.push-to-quay.outputs) }}" |
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: E2E Testing | ||
|
||
on: [push, pull_request] | ||
on: [pull_request] | ||
|
||
jobs: | ||
e2e-tests: | ||
|
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
kopf===1.37.2 | ||
kubernetes===19.15.0 | ||
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability | ||
pydantic==2.4.0 | ||
pydantic==2.3.0 |