mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 07:25:51 -04:00
ci: update actions to use nodeGroups and remove deprecated flags
This commit is contained in:
parent
b67874c54c
commit
7ea48dddef
12
.github/actions/constellation_create/action.yml
vendored
12
.github/actions/constellation_create/action.yml
vendored
@ -182,9 +182,13 @@ runs:
|
||||
if: inputs.machineType && inputs.machineType != 'default'
|
||||
shell: bash
|
||||
run: |
|
||||
yq eval -i "(.provider | select(. | has(\"azure\")).azure.instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
|
||||
yq eval -i "(.provider | select(. | has(\"gcp\")).gcp.instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
|
||||
yq eval -i "(.provider | select(. | has(\"aws\")).aws.instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
|
||||
yq eval -i "(.nodeGroups[] | .instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
|
||||
|
||||
- name: Set node count
|
||||
shell: bash
|
||||
run: |
|
||||
yq eval -i "(.nodeGroups[] | select(.role == "control-plane") | .initialCount) = \"${{ inputs.controlNodesCount }}\"" constellation-conf.yaml
|
||||
yq eval -i "(.nodeGroups[] | select(.role == "worker") | .initialCount) = \"${{ inputs.workerNodesCount }}\"" constellation-conf.yaml
|
||||
|
||||
- name: Create serviceAccountKey.json
|
||||
if: inputs.cloudProvider == 'gcp' && !inputs.existingConfig # Skip if using existing config. serviceAccountKey.json is already present in that case.
|
||||
@ -214,7 +218,7 @@ runs:
|
||||
if [[ $output == *"tf-log"* ]]; then
|
||||
TFFLAG="--tf-log=DEBUG"
|
||||
fi
|
||||
constellation create -c ${{ inputs.controlNodesCount }} -w ${{ inputs.workerNodesCount }} -y --force --debug ${TFFLAG:-}
|
||||
constellation create -y --force --debug ${TFFLAG:-}
|
||||
|
||||
- name: Cdbg deploy
|
||||
if: inputs.isDebugImage == 'true'
|
||||
|
2
.github/workflows/e2e-windows.yml
vendored
2
.github/workflows/e2e-windows.yml
vendored
@ -68,7 +68,7 @@ jobs:
|
||||
- name: Create cluster
|
||||
shell: pwsh
|
||||
run: |
|
||||
.\constellation.exe create --control-plane-nodes 1 --worker-nodes 2 --debug -y
|
||||
.\constellation.exe create --debug -y
|
||||
|
||||
- name: Initialize cluster
|
||||
shell: pwsh
|
||||
|
Loading…
x
Reference in New Issue
Block a user