From 9b9c117621e31f2027930e14e4769a11df7b2a63 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 | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 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..406b00a962 --- /dev/null +++ b/.github/workflows/osimages.yaml @@ -0,0 +1,38 @@ +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 + with: + args: make -C osimages osimage-upload