mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-11 08:54:21 -05:00
107 lines
3.7 KiB
YAML
107 lines
3.7 KiB
YAML
name: Generate measurements
|
|
description: "Generates measurements for a specific image"
|
|
inputs:
|
|
cloudProvider:
|
|
description: "Which cloud provider to use."
|
|
required: true
|
|
coreosImage:
|
|
description: "CoreOS image to run. The default value 'debug-latest' will select the latest available debug image."
|
|
required: true
|
|
isDebugImage:
|
|
description: "Is CoreOS img a debug img?"
|
|
required: true
|
|
workerNodesCount:
|
|
description: "Number of worker nodes to spawn."
|
|
required: false
|
|
default: "1"
|
|
controlNodesCount:
|
|
description: "Number of control-plane nodes to spawn."
|
|
required: false
|
|
default: "1"
|
|
machineType:
|
|
description: "VM machine type. Make sure it matches selected cloud provider!"
|
|
required: false
|
|
kubernetesVersion:
|
|
description: "Kubernetes version to create the cluster from."
|
|
required: false
|
|
default: "1.23"
|
|
gcp_service_account_json:
|
|
description: "Service account with permissions to create Constellation on GCP."
|
|
required: false
|
|
gcpClusterServiceAccountKey:
|
|
description: "Service account to use inside the created Constellation cluster on GCP."
|
|
required: false
|
|
azureClientSecret:
|
|
description: "The client secret value of the used secret"
|
|
required: false
|
|
azureResourceGroup:
|
|
description: "The resource group to use"
|
|
required: false
|
|
cosignPublicKey:
|
|
description: "Cosign public key to sign measurements."
|
|
required: true
|
|
cosignPrivateKey:
|
|
description: "Cosign private key to sign measurements."
|
|
required: true
|
|
cosignPassword:
|
|
description: "Cosign password for private key."
|
|
required: true
|
|
awsAccessKeyID:
|
|
description: "AWS access key ID to upload measurements."
|
|
required: true
|
|
awsSecretAccessKey:
|
|
description: "AWS secrets access key to upload measurements."
|
|
required: true
|
|
awsDefaultRegion:
|
|
description: "AWS region of S3 bucket. to upload measurements."
|
|
required: true
|
|
awsBucketName:
|
|
description: "AWS S3 bucket name to upload measurements."
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Build CLI
|
|
uses: ./.github/actions/build_cli
|
|
- name: Build the bootstrapper
|
|
id: build-bootstrapper
|
|
uses: ./.github/actions/build_bootstrapper
|
|
if: ${{ inputs.isDebugImage == 'true' }}
|
|
- name: Build cdbg
|
|
id: build-cdbg
|
|
uses: ./.github/actions/build_cdbg
|
|
if: ${{ inputs.isDebugImage == 'true' }}
|
|
|
|
- name: Login to GCP
|
|
uses: ./.github/actions/gcp_login
|
|
with:
|
|
gcp_service_account_json: ${{ inputs.gcp_service_account_json }}
|
|
if: ${{ inputs.cloudProvider == 'gcp' }}
|
|
|
|
- name: Create cluster
|
|
uses: ./.github/actions/constellation_create
|
|
with:
|
|
cloudProvider: ${{ inputs.cloudProvider }}
|
|
gcpClusterServiceAccountKey: ${{ inputs.gcpClusterServiceAccountKey }}
|
|
workerNodesCount: ${{ inputs.workerNodesCount }}
|
|
controlNodesCount: ${{ inputs.controlNodesCount }}
|
|
machineType: ${{ inputs.machineType }}
|
|
coreosImage: ${{ inputs.coreosImage }}
|
|
isDebugImage: ${{ inputs.isDebugImage }}
|
|
kubernetesVersion: ${{ inputs.kubernetesVersion }}
|
|
azureClientSecret: ${{ inputs.azureClientSecret }}
|
|
azureResourceGroup: ${{ inputs.azureResourceGroup }}
|
|
|
|
- name: Measure cluster
|
|
uses: ./.github/actions/constellation_measure
|
|
with:
|
|
cloudProvider: ${{ inputs.cloudProvider }}
|
|
cosignPublicKey: ${{ inputs.cosignPublicKey }}
|
|
cosignPrivateKey: ${{ inputs.cosignPrivateKey }}
|
|
cosignPassword: ${{ inputs.cosignPassword }}
|
|
awsAccessKeyID: ${{ inputs.awsAccessKeyID }}
|
|
awsSecretAccessKey: ${{ inputs.awsSecretAccessKey }}
|
|
awsDefaultRegion: ${{ inputs.awsDefaultRegion }}
|
|
awsBucketName: ${{ inputs.awsBucketName }}
|