Skip to content

Release for Cluster API Vsphere 3.0.0-rc #32

Release for Cluster API Vsphere 3.0.0-rc

Release for Cluster API Vsphere 3.0.0-rc #32

Workflow file for this run

name: Release
run-name: Release for Cluster API Vsphere ${{ github.event.inputs.release_version }}
on:
workflow_dispatch:
inputs:
release_version:
description: 'Cluster API Version to Build'
required: true
default: '0.0.0'
jobs:
builder:
# edge-runner machine group is a bunch of machines in US Datacenter
runs-on: ubuntu-latest
# Initialize all secrets required for the job
# Ensure that the credentials are provided as encrypted secrets
env:
SPECTRO_VERSION: ${{ github.event.inputs.release_version }}
steps:
-
uses: mukunku/[email protected]
id: checkTag
with:
tag: spectro-v${{ github.event.inputs.release_version }}
-
if: ${{ steps.checkTag.outputs.exists == 'true' }}
run: |
echo "Tag already exists for spectro-v${{ github.event.inputs.release_version }}..."
exit 1
-
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to private registry
uses: docker/login-action@v1
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
-
name: Build Image
env:
DEV_REGISTRY: gcr.io/spectro-images-public/release/cluster-api-vsphere
run: |
make docker-build
make docker-push-gcr
-
name: Build Image - FIPS Mode
env:
FIPS_ENABLE: yes
DEV_REGISTRY: gcr.io/spectro-images-public/release-fips/cluster-api-vsphere
run: |
make docker-build
make docker-push-gcr
-
name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: spectro-v${{ github.event.inputs.release_version }}
release_name: Release spectro-v${{ github.event.inputs.release_version }}
body: |
Release version ${{ github.event.inputs.release_version }}
draft: false
prerelease: false