mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 15:39:37 -05:00
Move serviceAccountKey.json creation before create
The printed config does not contain the path since it's printed before injection, so let's inject it before.
This commit is contained in:
parent
1741c2d941
commit
b6385ad3bc
16
.github/actions/constellation_create/action.yml
vendored
16
.github/actions/constellation_create/action.yml
vendored
@ -119,6 +119,14 @@ runs:
|
||||
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
|
||||
|
||||
- name: Create serviceAccountKey.json
|
||||
if: ${{ inputs.cloudProvider == 'gcp' }}
|
||||
shell: bash
|
||||
run: |
|
||||
echo "$GCP_CLUSTER_SERVICE_ACCOUNT_KEY" > serviceAccountKey.json
|
||||
env:
|
||||
GCP_CLUSTER_SERVICE_ACCOUNT_KEY: ${{ inputs.gcpClusterServiceAccountKey }}
|
||||
|
||||
- name: Add debugd firewall rule
|
||||
run: |
|
||||
yq eval -i '(.ingressFirewall) += {"name": "debugd", "description": "debugd default port", "protocol": "tcp", "iprange": "0.0.0.0/0", "fromport": 4000, "toport": 0}' constellation-conf.yaml
|
||||
@ -146,14 +154,6 @@ runs:
|
||||
shell: bash
|
||||
if: ${{ inputs.isDebugImage == 'true' }}
|
||||
|
||||
- name: Create serviceAccountKey.json
|
||||
if: ${{ inputs.cloudProvider == 'gcp' }}
|
||||
shell: bash
|
||||
run: |
|
||||
echo "$GCP_CLUSTER_SERVICE_ACCOUNT_KEY" > serviceAccountKey.json
|
||||
env:
|
||||
GCP_CLUSTER_SERVICE_ACCOUNT_KEY: ${{ inputs.gcpClusterServiceAccountKey }}
|
||||
|
||||
- name: Constellation init
|
||||
run: |
|
||||
if [ ${{ inputs.autoscale }} = true ]; then autoscale=--autoscale; fi
|
||||
|
Loading…
Reference in New Issue
Block a user