feat(vine): improve wayland support #886
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
--- | |
name: Lint, Build, Test, and Deploy Projects | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
DEBIAN_FRONTEND: noninteractive | |
REGISTRY: quay.io | |
REGISTRY_USER: kerryeon | |
REGISTRY_REPOSITORY: ulagbulag | |
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} | |
RELEASE_NAME: OpenARK | |
IMAGE_NAME: openark | |
ALPINE_VERSION: "3.19" | |
DEBIAN_VERSION: "bookworm" | |
K8S_VERSION: "1.30.0" | |
ROCKYLINUX_VERSION: "8" | |
RUST_MIN_STACK: "2097152" | |
jobs: | |
lint-yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y yamllint | |
- name: Lint | |
uses: ibiqlik/action-yamllint@v3 | |
with: | |
config_file: ./.github/linters/yamllint.yaml | |
build-and-push-image: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: self-hosted | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }} | |
tags: latest | |
context: "." | |
containerfiles: | | |
./Dockerfile | |
build-args: | | |
DEBIAN_VERSION=${{ env.DEBIAN_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-bootstrap-node: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-bootstrap-node | |
tags: latest | |
context: ./templates/bootstrap/node | |
containerfiles: | | |
./templates/bootstrap/node/Dockerfile | |
build-args: | | |
ROCKYLINUX_VERSION=${{ env.ROCKYLINUX_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-ipmitool: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y buildah qemu-user-static podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-ipmitool | |
tags: latest | |
platforms: linux/amd64, linux/arm64 | |
context: ./templates/ipmitool | |
containerfiles: | | |
./templates/ipmitool/Dockerfile | |
build-args: | | |
ALPINE_VERSION=${{ env.ALPINE_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-ipxe: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
continue-on-error: true # ignore errors on building iPXE | |
with: | |
image: ${{ env.IMAGE_NAME }}-ipxe | |
tags: latest | |
context: ./templates/ipxe | |
containerfiles: | | |
./templates/ipxe/Dockerfile | |
build-args: | | |
ALPINE_VERSION=${{ env.ALPINE_VERSION }} | |
DEBIAN_VERSION=${{ env.DEBIAN_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
continue-on-error: true # ignore errors on building iPXE | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
continue-on-error: true # ignore errors on building iPXE | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-kiss-assets: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-kiss-assets | |
tags: latest | |
context: ./templates/kiss/assets | |
containerfiles: | | |
./templates/kiss/assets/Dockerfile | |
build-args: | | |
DEBIAN_VERSION=${{ env.DEBIAN_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-kiss-optimizer-wifi: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-kiss-optimizer-wifi | |
tags: latest | |
context: ./templates/kiss/optimizer/wifi | |
containerfiles: | | |
./templates/kiss/optimizer/wifi/Dockerfile | |
# build-args: | | |
# ROCKYLINUX_VERSION=${{ env.ROCKYLINUX_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-snapshot-git: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-snapshot-git | |
tags: latest | |
context: ./templates/snapshot/git | |
containerfiles: | | |
./templates/snapshot/git/Dockerfile | |
build-args: | | |
K8S_VERSION=${{ env.K8S_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-upgrade-csi-rook-ceph: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-upgrade-csi-rook-ceph | |
tags: latest | |
context: ./templates/csi/rook-ceph | |
containerfiles: | | |
./templates/csi/rook-ceph/Dockerfile | |
build-args: | | |
K8S_VERSION=${{ env.K8S_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-upgrade-csi-s3: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-upgrade-csi-s3 | |
tags: latest | |
context: ./templates/csi/s3 | |
containerfiles: | | |
./templates/csi/s3/Dockerfile | |
build-args: | | |
K8S_VERSION=${{ env.K8S_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-upgrade-gpu-nvidia: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-upgrade-gpu-nvidia | |
tags: latest | |
context: ./templates/gpu/nvidia | |
containerfiles: | | |
./templates/gpu/nvidia/Dockerfile | |
build-args: | | |
K8S_VERSION=${{ env.K8S_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-upgrade-kiss: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-upgrade-kiss | |
tags: latest | |
context: ./templates/kiss | |
containerfiles: | | |
./templates/kiss/Dockerfile | |
build-args: | | |
K8S_VERSION=${{ env.K8S_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-upgrade-fabric-mellanox: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-upgrade-fabric-mellanox | |
tags: latest | |
context: ./templates/fabric/mellanox | |
containerfiles: | | |
./templates/fabric/mellanox/Dockerfile | |
build-args: | | |
K8S_VERSION=${{ env.K8S_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-vine-novnc: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-vine-novnc | |
tags: latest | |
context: ./templates/vine/novnc | |
containerfiles: | | |
./templates/vine/novnc/Dockerfile | |
build-args: | | |
ROCKYLINUX_VERSION=${{ env.ROCKYLINUX_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-vine-x11vnc: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-vine-x11vnc | |
tags: latest | |
context: ./templates/vine/x11vnc | |
containerfiles: | | |
./templates/vine/x11vnc/Dockerfile | |
build-args: | | |
ROCKYLINUX_VERSION=${{ env.ROCKYLINUX_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
build-and-push-image-wsmancli: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- lint-yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: > | |
sudo apt-get update | |
&& sudo apt-get install -y podman | |
&& mkdir -p /home/runner/.docker/ | |
&& echo '{"auths":{"quay.io":{}}}' >/home/runner/.docker/config.json | |
# TODO: Wait a buildah issue to be resolved: https://github.com/redhat-actions/buildah-build/issues/116 | |
- name: Disable container build cache | |
run: find ./ -name 'Dockerfile*' -exec sed -i '/--mount=type=cache[a-z0-9,=\/-]* \\$/ d' '{}' \; | |
- name: Log in to ${{ env.REGISTRY }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
- name: Build Image | |
id: build-and-push-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }}-wsmancli | |
tags: latest | |
context: ./templates/wsmancli | |
containerfiles: | | |
./templates/wsmancli/Dockerfile | |
build-args: | | |
ROCKYLINUX_VERSION=${{ env.ROCKYLINUX_VERSION }} | |
- name: Push To ${{ env.REGISTRY }} | |
id: push-to-quay | |
if: ${{ github.repository }} == ${{ env.REGISTRY_REPOSITORY }}/${{ env.IMAGE_NAME }} | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-and-push-image.outputs.image }} | |
tags: ${{ steps.build-and-push-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_REPOSITORY }} | |
- name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" | |
release: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- build-and-push-image | |
- build-and-push-image-bootstrap-node | |
- build-and-push-image-ipmitool | |
- build-and-push-image-ipxe | |
- build-and-push-image-kiss-assets | |
- build-and-push-image-kiss-optimizer-wifi | |
- build-and-push-image-snapshot-git | |
- build-and-push-image-upgrade-csi-rook-ceph | |
- build-and-push-image-upgrade-csi-s3 | |
- build-and-push-image-upgrade-gpu-nvidia | |
- build-and-push-image-upgrade-kiss | |
- build-and-push-image-upgrade-fabric-mellanox | |
- build-and-push-image-vine-novnc | |
- build-and-push-image-vine-x11vnc | |
- build-and-push-image-wsmancli | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Release | |
uses: rymndhng/release-on-push-action@master | |
with: | |
release_name: Automatic Release of Cutting-Edge ${{ env.RELEASE_NAME }} | |
release_body: Committed as ${{ github.sha }} | |
bump_version_scheme: patch | |
use_github_release_notes: false |