Skip to content

neonvm-controller: Remove unused auth proxy rbac (#1122) #180

neonvm-controller: Remove unused auth proxy rbac (#1122)

neonvm-controller: Remove unused auth proxy rbac (#1122) #180

Workflow file for this run

name: release
on:
# # UNCOMMENT TO ALLOW TESTING:
# pull_request:
push:
tags:
- "v*.*.*"
defaults:
run:
shell: bash -euo pipefail {0}
jobs:
get-tag:
outputs:
tag: ${{ steps.get-tag.outputs.tag }}
dry-run: ${{ steps.get-tag.outputs.dry-run }}
runs-on: ubuntu-latest
steps:
- name: get tag
id: get-tag
env:
REF_NAME: ${{ github.ref_name }}
SHA: ${{ github.event.pull_request.head.sha || '' }}
run: |
if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
echo "dry-run=true" | tee -a $GITHUB_OUTPUT
sha="${SHA::7}"
day="$(date -u '+%+4Y%m%d')" # equivalent to %F (e.g. '2024-01-19') with no dashes (e.g. '20240119')
echo "tag=testrelease-$day.$sha.$GITHUB_RUN_ID" | tee -a $GITHUB_OUTPUT
else
echo "dry-run=false" | tee -a $GITHUB_OUTPUT
echo "tag=$REF_NAME" | tee -a $GITHUB_OUTPUT
fi
build-images:
uses: ./.github/workflows/build-images.yaml
needs: get-tag
with:
tag: ${{ needs.get-tag.outputs.tag }}
build-cluster-autoscaler: true
upload-to-ecr: true
secrets: inherit
build-test-vm:
uses: ./.github/workflows/build-test-vm.yaml
needs: get-tag
with:
tag: ${{ needs.get-tag.outputs.tag }}
upload-vm-builder: true
secrets: inherit
e2e:
needs: [ get-tag, build-images, build-test-vm ]
uses: ./.github/workflows/e2e-test.yaml
with:
tag: ${{ needs.get-tag.outputs.tag }}
push-yamls: true
secrets: inherit
release:
needs: [ get-tag, e2e ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: download vm-builder
uses: actions/download-artifact@v4
with:
name: vm-builder
path: vm-builder
- 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: github release
if: ${{ needs.get-tag.outputs.dry-run == 'false' }}
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: |
vm-builder/vm-builder
rendered_manifests/autoscale-scheduler.yaml
rendered_manifests/autoscaler-agent.yaml
rendered_manifests/neonvm.yaml
rendered_manifests/neonvm-controller.yaml
rendered_manifests/neonvm-vxlan-controller.yaml
rendered_manifests/neonvm-runner-image-loader.yaml
rendered_manifests/multus.yaml
rendered_manifests/multus-aks.yaml
rendered_manifests/multus-eks.yaml
rendered_manifests/whereabouts.yaml
vmscrape.yaml