Skip to content

Commit

Permalink
expand variables (#1161)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Kammel <fk@edgeless.systems>
  • Loading branch information
Fabian Kammel committed Feb 10, 2023
1 parent 278031b commit 50522cb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-os-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,6 @@ jobs:
- name: Add static PCRs
run: |
OUTFLAGS="-I 0 -o json -i"
PCRFILE="${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
case ${{ matrix.csp }} in
aws)
yq e '.csp = "AWS" |
Expand All @@ -611,7 +608,7 @@ jobs:
.measurements.14.warnOnly = true |
.measurements.14.expected = "d7c4cc7ff7933022f013e03bdee875b91720b5b86cf1753cad830f95e791926f" |
.measurements.15.warnOnly = false' \
"${OUTFLAGS}" "${PCRFILE}"
-I 0 -o json -i "${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
;;
azure)
yq e '.csp = "Azure" |
Expand All @@ -635,7 +632,7 @@ jobs:
.measurements.14.warnOnly = true |
.measurements.14.expected = "d7c4cc7ff7933022f013e03bdee875b91720b5b86cf1753cad830f95e791926f" |
.measurements.15.warnOnly = false' \
"${OUTFLAGS}" "${PCRFILE}"
-I 0 -o json -i "${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
;;
gcp)
yq e '.csp = "GCP" |
Expand Down Expand Up @@ -665,7 +662,7 @@ jobs:
.measurements.14.warnOnly = true |
.measurements.14.expected = "d7c4cc7ff7933022f013e03bdee875b91720b5b86cf1753cad830f95e791926f" |
.measurements.15.warnOnly = false' \
"${OUTFLAGS}" "${PCRFILE}"
-I 0 -o json -i "${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
;;
qemu)
yq e '.csp = "QEMU" |
Expand All @@ -677,7 +674,7 @@ jobs:
.measurements.12.warnOnly = false |
.measurements.13.warnOnly = false |
.measurements.15.warnOnly = false' \
"${OUTFLAGS}" "${PCRFILE}"
-I 0 -o json -i "${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
;;
*)
echo "Unknown CSP: ${{ matrix.csp }}"
Expand Down

0 comments on commit 50522cb

Please sign in to comment.