mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: tag resources created by e2e tests with the run name (#3035)
This commit is contained in:
parent
591aba99fd
commit
3f7a4e4313
@ -14,6 +14,10 @@ inputs:
|
|||||||
namePrefix:
|
namePrefix:
|
||||||
description: "Name prefix to use for resources."
|
description: "Name prefix to use for resources."
|
||||||
required: true
|
required: true
|
||||||
|
additionalTags:
|
||||||
|
description: "Additional resource tags that will be written into the constellation configuration."
|
||||||
|
default: ""
|
||||||
|
required: false
|
||||||
#
|
#
|
||||||
# AWS specific inputs
|
# AWS specific inputs
|
||||||
#
|
#
|
||||||
@ -49,7 +53,7 @@ runs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "flag=--update-config" | tee -a "$GITHUB_OUTPUT"
|
echo "flag=--update-config" | tee -a "$GITHUB_OUTPUT"
|
||||||
constellation config generate ${{ inputs.cloudProvider }} ${kubernetesFlag} --attestation ${{ inputs.attestationVariant }}
|
constellation config generate ${{ inputs.cloudProvider }} ${kubernetesFlag} --attestation ${{ inputs.attestationVariant }} --tags ${{ inputs.additionalTags }}
|
||||||
|
|
||||||
- name: Constellation iam create aws
|
- name: Constellation iam create aws
|
||||||
shell: bash
|
shell: bash
|
||||||
|
1
.github/actions/e2e_test/action.yml
vendored
1
.github/actions/e2e_test/action.yml
vendored
@ -258,6 +258,7 @@ runs:
|
|||||||
gcpProjectID: ${{ inputs.gcpProject }}
|
gcpProjectID: ${{ inputs.gcpProject }}
|
||||||
gcpZone: ${{ inputs.regionZone || 'europe-west3-b' }}
|
gcpZone: ${{ inputs.regionZone || 'europe-west3-b' }}
|
||||||
kubernetesVersion: ${{ inputs.kubernetesVersion }}
|
kubernetesVersion: ${{ inputs.kubernetesVersion }}
|
||||||
|
additionalTags: "workflow=${{ github.workflow }}"
|
||||||
|
|
||||||
- name: Login to GCP (Cluster service account)
|
- name: Login to GCP (Cluster service account)
|
||||||
if: inputs.cloudProvider == 'gcp'
|
if: inputs.cloudProvider == 'gcp'
|
||||||
|
2
.github/workflows/e2e-windows.yml
vendored
2
.github/workflows/e2e-windows.yml
vendored
@ -84,7 +84,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
$uid = Get-Random -Minimum 1000 -Maximum 9999
|
$uid = Get-Random -Minimum 1000 -Maximum 9999
|
||||||
$rgName = "e2e-win-${{ github.run_id }}-${{ github.run_attempt }}-$uid"
|
$rgName = "e2e-win-${{ github.run_id }}-${{ github.run_attempt }}-$uid"
|
||||||
.\constellation.exe config generate azure
|
.\constellation.exe config generate azure -t "workflow=${{ github.workflow }}"
|
||||||
.\constellation.exe iam create azure --region=westus --resourceGroup=$rgName-rg --servicePrincipal=$rgName-sp --update-config --debug -y
|
.\constellation.exe iam create azure --region=westus --resourceGroup=$rgName-rg --servicePrincipal=$rgName-sp --update-config --debug -y
|
||||||
|
|
||||||
- name: Login to Azure (Cluster service principal)
|
- name: Login to Azure (Cluster service principal)
|
||||||
|
Loading…
Reference in New Issue
Block a user