v0.3.0 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get release | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Install Golang 1.19 | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.19' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Generate release manifests | |
env: | |
IMG_TAG: ${{ steps.get_release.outputs.tag_name }} | |
run: make release-manifests | |
- name: Upload to Quay | |
env: | |
IMG_TAG: ${{ steps.get_release.outputs.tag_name }} | |
run: | | |
podman login -u="${{ secrets.QUAY_BOT }}" -p="${{ secrets.QUAY_PASSWORD }}" quay.io | |
make build-container | |
make push-container | |
- name: Upload generated release manifests | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: _out/vm-console-proxy.yaml | |
asset_name: vm-console-proxy.yaml | |
asset_content_type: text/plain | |
- name: Trigger ssp-operator | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.GH_ACCESS_TOKEN }} | |
repository: kubevirt/ssp-operator | |
event-type: release-vm-console-proxy | |
client-payload: '{"release_version": "${{ steps.get_release.outputs.tag_name }}"}' |