File tree 4 files changed +4
-33
lines changed
start_aws_private_operator
4 files changed +4
-33
lines changed Original file line number Diff line number Diff line change @@ -186,9 +186,8 @@ jobs:
186
186
- name : Prepare AWS metadata
187
187
id : prepare_aws_metadata
188
188
if : ${{ inputs.operator_type == 'aws' }}
189
- uses : IABTechLab/uid2-shared-actions/actions/prepare_aws_metadata@v2
189
+ uses : IABTechLab/uid2-shared-actions/actions/prepare_aws_metadata@v3
190
190
with :
191
- operator_image_version : ${{ inputs.operator_image_version }}
192
191
admin_root : ${{ inputs.admin_root }}
193
192
aws_pcr0 : ${{ inputs.aws_pcr0 }}
194
193
@@ -245,14 +244,13 @@ jobs:
245
244
- name : Start AWS private operator
246
245
id : start_aws_private_operator
247
246
if : ${{ inputs.operator_type == 'aws' }}
248
- uses : IABTechLab/uid2-shared-actions/actions/start_aws_private_operator@v2
247
+ uses : IABTechLab/uid2-shared-actions/actions/start_aws_private_operator@v3
249
248
with :
250
249
bore_url_core : ${{ steps.bore.outputs.BORE_URL_CORE }}
251
250
bore_url_optout : ${{ steps.bore.outputs.BORE_URL_OPTOUT }}
252
251
bore_url_localstack : ${{ steps.bore.outputs.BORE_URL_LOCALSTACK }}
253
252
aws_region : ${{ inputs.aws_region }}
254
253
aws_ami : ${{ inputs.aws_ami }}
255
- image_hash : ${{ steps.prepare_aws_metadata.outputs.image_hash }}
256
254
identity_scope : ${{ inputs.uid2_e2e_identity_scope }}
257
255
operator_key : ${{ steps.prepare_aws_metadata.outputs.operator_key }}
258
256
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ name: Prepare AWS Metadata
2
2
description : Prepares the AWS Nitro enclave metadata
3
3
4
4
inputs :
5
- operator_image_version :
6
- description : The uid2-operator image version
7
- default : latest
8
5
admin_root :
9
6
description : The root path for uid2-admin folder
10
7
default : uid2-admin
@@ -13,9 +10,6 @@ inputs:
13
10
required : true
14
11
15
12
outputs :
16
- image_hash :
17
- description : The operator image hash
18
- value : ${{ steps.image_digest.outputs.IMAGE_HASH }}
19
13
operator_key :
20
14
description : The operator key
21
15
value : ${{ steps.enclave_metadata.outputs.OPERATOR_KEY }}
24
18
using : " composite"
25
19
26
20
steps :
27
- - name : Get image digest
28
- id : image_digest
29
- shell : bash
30
- run : |
31
- # Pull the image to make sure it's available locally
32
- IMAGE_NAME="ghcr.io/iabtechlab/uid2-operator"
33
- IMAGE_TAG="${{ inputs.operator_image_version }}"
34
- docker pull "${IMAGE_NAME}:${IMAGE_TAG}"
35
-
36
- # Get the digest
37
- IMAGE_HASH=$(docker inspect --format='{{index .RepoDigests 0}}' "${IMAGE_NAME}:${IMAGE_TAG}" | cut -d'@' -f2 | cut -d':' -f2)
38
- echo "::set-output name=image_hash::${IMAGE_HASH}"
39
-
40
21
- name : Prepare AWS enclave metadata
41
22
id : enclave_metadata
42
23
shell : bash
Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ inputs:
17
17
aws_ami :
18
18
description : The AWS AMI ID
19
19
required : true
20
- image_hash :
21
- description : The operator image hash
22
- required : true
23
20
identity_scope :
24
21
description : The identity scope [UID2, EUID]
25
22
required : true
40
37
41
38
steps :
42
39
- name : Setup Python 3
43
- uses : actions/setup-python@v4
40
+ uses : actions/setup-python@v5
44
41
with :
45
42
python-version : 3.x
46
43
66
63
BORE_URL_LOCALSTACK : ${{ inputs.bore_url_localstack }}
67
64
AWS_REGION : ${{ inputs.aws_region }}
68
65
AWS_AMI : ${{ inputs.aws_ami }}
69
- IMAGE_HASH : ${{ inputs.image_hash }}
70
66
IDENTITY_SCOPE : ${{ inputs.identity_scope }}
71
67
OPERATOR_KEY : ${{ inputs.operator_key }}
72
68
run : |
Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ if [ -z "${AWS_AMI}" ]; then
30
30
exit 1
31
31
fi
32
32
33
- if [ -z " ${IMAGE_HASH} " ]; then
34
- echo " IMAGE_HASH can not be empty"
35
- exit 1
36
- fi
37
33
38
34
if [ -z " ${IDENTITY_SCOPE} " ]; then
39
35
echo " IDENTITY_SCOPE can not be empty"
@@ -46,7 +42,7 @@ if [ -z "${OPERATOR_KEY}" ]; then
46
42
fi
47
43
48
44
DATE=$( date ' +%Y%m%d%H%M%S' )
49
- AWS_STACK_NAME=" uid2-operator-e2e-${IMAGE_HASH } -${DATE} "
45
+ AWS_STACK_NAME=" uid2-operator-e2e-${AWS_AMI } -${DATE} "
50
46
51
47
CF_TEMPLATE_SCOPE=" "
52
48
case " ${IDENTITY_SCOPE} " in
You can’t perform that action at this time.
0 commit comments