Skip to content

CI: Use separate workflows for image builds #128

CI: Use separate workflows for image builds

CI: Use separate workflows for image builds #128

Workflow file for this run

name: release
on:
pull_request:
push:
tags:
- "v*.*.*"
jobs:
build-images:
uses: ./.github/workflows/build-images.yaml
with:
# tag: ${{ github.ref_name }}
tag: testrelease-20240119.${{ github.event.pull_request.head.sha}}
kernel-image: ${{ inputs.kernel-image }}
build-cluster-autoscaler: true
secrets: inherit
build-vms:
uses: ./.github/workflows/build-test-vm.yaml
with:
# tag: ${{ github.ref_name }}
tag: testrelease-20240119.${{ github.event.pull_request.head.sha}}
upload-vm-builder: true
secrets: inherit
e2e:
needs: [ build-images, build-vms ]
uses: ./.github/workflows/e2e-test.yaml
with:
# tag: ${{ github.ref_name }}
tag: testrelease-20240119.${{ github.event.pull_request.head.sha}}
push-yamls: true
secrets: inherit
release:
needs: e2e
runs-on: [ self-hosted, gen3, large ]
steps:
- uses: actions/checkout@v3
- name: download vm-builder
uses: actions/download-artifact@v4
with:
name: vm-builder
path: .
- name: download manifests
uses: actions/download-artifact@v4
with:
name: rendered_manifests
# files in the artifact will be expanded into the directory 'rendered_manifests'.
# See e2e-test.yaml: the individual yamls are flattened inside the artifact.
path: rendered_manifests
- name: show files
run: ls -R .
# - name: github release
# uses: softprops/action-gh-release@v1
# with:
# fail_on_unmatched_files: true
# files: |
# vm-builder
# rendered_manifests/autoscale-scheduler.yaml
# rendered_manifests/autoscaler-agent.yaml
# rendered_manifests/neonvm.yaml
# rendered_manifests/multus.yaml
# rendered_manifests/multus-eks.yaml
# rendered_manifests/whereabouts.yaml
# deploy/vmscrape.yaml