From 77c10e9df4e674e3fc71943a52d7e657155bb772 Mon Sep 17 00:00:00 2001 From: Lennart Jern Date: Wed, 24 Jan 2024 15:38:59 +0200 Subject: [PATCH] Add github action --- .github/workflows/osimages.yaml | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/osimages.yaml diff --git a/.github/workflows/osimages.yaml b/.github/workflows/osimages.yaml new file mode 100644 index 0000000000..b752fdf371 --- /dev/null +++ b/.github/workflows/osimages.yaml @@ -0,0 +1,37 @@ +name: E2E node images + +on: + pull_request: + branches: [main] + paths-ignore: + - '**/*.md' + - 'docs/**' + - '.gitignore' + - 'hack/*.sh' + - 'LICENSE' + - 'SECURITY_CONTACTS' + - 'OWNERS' + +permissions: {} + +jobs: + build: + name: Build and upload node images + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + + - name: Build images + run: make -C osimages -j2 ACCELERATOR=none \ + osimage-flatcar-1.27.2 \ + osimage-flatcar-1.28.2 \ + osimage-ubuntu-2204-1.28.2 \ + osimage-ubuntu-2204-1.27.2 + + - name: Upload images + uses: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:latest + run: make -C osimages osimage-upload