File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 55 branches : [ main ]
66 pull_request :
77 branches : [ main ]
8+ inputs :
9+ config_hash :
10+ description : ' SHA256 hash for the config'
11+ required : true
12+ type : string
813
914jobs :
1015 build :
1924 - name : Set up Docker Buildx
2025 uses : docker/setup-buildx-action@v3
2126
27+ - name : Update config hash in entrypoint
28+ run : |
29+ # Replace the empty EXPECTED_CONFIG_SHA256 with the provided hash
30+ sed -i 's/^EXPECTED_CONFIG_SHA256=""/EXPECTED_CONFIG_SHA256="'"${{ github.event.inputs.config_hash }}"'"/' ./scripts/aws-nitro-entrypoint.sh
31+ grep "EXPECTED_CONFIG_SHA256" ./aws-nitro-entrypoint.sh
32+
2233 # Build Docker image
2334 - name : Build Docker image
2435 uses : docker/build-push-action@v5
Original file line number Diff line number Diff line change 11version : v1
22name : " batcher"
3- target : " enclaver-batch-poster: {{BRANCH_NAME}}"
3+ target : " enclaver-batch-poster- {{BRANCH_NAME}}:latest "
44sources :
55 app : " nitro-image:latest"
66defaults :
You can’t perform that action at this time.
0 commit comments