Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

934.11 (#67)

934.11 (#67) #73

Workflow file for this run

---
name: Build image
"on":
workflow_dispatch:
push:
paths:
- .github/workflows/build-image.yml
branches:
- main
pull_request:
paths:
- .github/workflows/build-image.yml
jobs:
build-image:
# runs-on: ubuntu-latest
runs-on: [self-hosted, gardenlinux]
strategy:
matrix:
release:
- "934.11"
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- run: pip3 install networkx
- run: git clone --depth 1 --branch ${{ matrix.release }} https://github.com/gardenlinux/gardenlinux.git
- name: Build image
shell: 'script -q -e -c "bash {0}"'
# GARDENLINUX_BUILD_CRE=docker is required to run docker instead of podman.
#
# podman with sudo gives the following error on Github Actions:
#
# sd-bus call: Transport endpoint is not connected
run: make openstack BUILDKEY=info@osism.tech GARDENLINUX_BUILD_CRE=docker
working-directory: gardenlinux
- run: find . -name openstack-gardener-amd64-${{ matrix.release }}-local.qcow2 -exec mv {} gardenlinux-amd64.${{ matrix.release }}.qcow2 \;
working-directory: gardenlinux
- run: sha256sum gardenlinux-amd64.${{ matrix.release }}.qcow2 > gardenlinux-amd64.${{ matrix.release }}.qcow2.checksum
working-directory: gardenlinux
- run: |
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc alias set minio https://swift.services.a.regiocloud.tech ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }}
./mc cp gardenlinux-amd64.${{ matrix.release }}.qcow2 minio/openstack-image-gardenlinux
./mc policy set download minio/openstack-image-gardenlinux/gardenlinux-amd64.${{ matrix.release }}.qcow2
./mc cp gardenlinux-amd64.${{ matrix.release }}.qcow2.checksum minio/openstack-image-gardenlinux
./mc policy set download minio/openstack-image-gardenlinux/gardenlinux-amd64.${{ matrix.release }}.qcow2.checksum
working-directory: gardenlinux
if: github.ref == 'refs/heads/main'