File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 88 description : ' SHA256 hash for the config'
99 required : false
1010 default : " 2b65fec23d880a003ebde5dc037a4e03b82fd6cbfa6d183f17a08bd0ca232bb9"
11+ nitro_node_image :
12+ type : string
13+ description : ' Nitro node image to build in dockerfile'
14+ required : false
15+ default : ghcr.io/espressosystems/nitro-espresso-integration/nitro-node:v3.3.2-fcd633f
1116 push :
1217 branches :
1318 - main
@@ -29,12 +34,25 @@ jobs:
2934 - name : Set up Docker Buildx
3035 uses : docker/setup-buildx-action@v3
3136
37+ # Update sha256 hash of config
3238 - name : Update config hash in entrypoint
3339 run : |
3440 CONFIG_HASH="${{ github.event.inputs.config_hash }}"
3541 echo "Using hash: $CONFIG_HASH"
3642 sed -i 's/^EXPECTED_CONFIG_SHA256=.*$/EXPECTED_CONFIG_SHA256="'"$CONFIG_HASH"'"/' ./docker/aws-nitro-entrypoint.sh
3743 grep "EXPECTED_CONFIG_SHA256" ./docker/aws-nitro-entrypoint.sh
44+
45+ # Update dockerfile
46+ - name : Update Nitro Node Image in Dockerfile
47+ run : |
48+ NITRO_IMAGE="${{ github.event.inputs.nitro_node_image }}"
49+ if [ -n "$NITRO_IMAGE" ]; then
50+ echo "Updating Dockerfile to use custom nitro-node image: $NITRO_IMAGE"
51+ sed -i 's|^FROM ghcr.io/espressosystems/nitro-espresso-integration/nitro-node:.*$|FROM '"$NITRO_IMAGE"'|' ./docker/Dockerfile.aws-nitro-poster
52+ grep "^FROM" ./docker/Dockerfile.aws-nitro-poster
53+ else
54+ echo "Using default nitro-node image"
55+ fi
3856
3957 # Build Docker image
4058 - name : Build Docker image
You can’t perform that action at this time.
0 commit comments