Skip to content

Commit c39fae3

Browse files
committed
test hash replacement
1 parent 9d6b2ab commit c39fae3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/build-eif.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
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

914
jobs:
1015
build:
@@ -19,6 +24,12 @@ jobs:
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

enclaver/enclaver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: v1
22
name: "batcher"
3-
target: "enclaver-batch-poster:{{BRANCH_NAME}}"
3+
target: "enclaver-batch-poster-{{BRANCH_NAME}}:latest"
44
sources:
55
app: "nitro-image:latest"
66
defaults:

0 commit comments

Comments
 (0)