File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1111 description : ' SHA256 hash for the config'
1212 required : true
1313 type : string
14- default : " 2b65fec23d880a003ebde5dc037a4e03b82fd6cbfa6d183f17a08bd0ca232bb9"
1514
1615jobs :
1716 build :
2827
2928 - name : Update config hash in entrypoint
3029 run : |
31- # Replace the empty EXPECTED_CONFIG_SHA256 with the provided hash
32- echo "Input hash received: '${{ github.event.inputs.config_hash }}' "
33- sed -i 's/^EXPECTED_CONFIG_SHA256=.*$/EXPECTED_CONFIG_SHA256="'"${{ github.event.inputs.config_hash }} "'"/' ./docker/aws-nitro-entrypoint.sh
30+ CONFIG_HASH="${{ github.event.inputs.config_hash || '2b65fec23d880a003ebde5dc037a4e03b82fd6cbfa6d183f17a08bd0ca232bb9' }}"
31+ echo "Using hash: $CONFIG_HASH "
32+ sed -i 's/^EXPECTED_CONFIG_SHA256=.*$/EXPECTED_CONFIG_SHA256="'"$CONFIG_HASH "'"/' ./docker/aws-nitro-entrypoint.sh
3433 grep "EXPECTED_CONFIG_SHA256" ./docker/aws-nitro-entrypoint.sh
3534
3635 # Build Docker image
You can’t perform that action at this time.
0 commit comments