Skip to content

Commit 7528b05

Browse files
committed
attempt for if
Signed-off-by: Charalampos Mainas <charalampos.mainas@gmail.com>
1 parent 0b4fa63 commit 7528b05

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

.github/workflows/build_and_manifest.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,12 @@ jobs:
2727
echo "${{ toJSON(fromJSON(inputs.changed)) }}"
2828
echo "${{ toJSON(fromJSON(inputs.changed)['hello-world'].unikraft) }}"
2929
echo "${{ toJSON(fromJSON(inputs.changed).hello-world.unikraft) }}"
30-
31-
#- name: Print debug
32-
# run: |
33-
# echo ${{ join(fromJSON(inputs.changed), ' ') }}
34-
# echo ${{ (fromJSON(inputs.changed.hello-world), ' ') }}
35-
# echo ${{ join(fromJSON(inputs.changed)['hello-world'].unikraft, '') }}
30+
echo "${{ toJSON(fromJSON(inputs.changed).hello-world.unikraft.firecracker) }}"
31+
echo "${{ join(fromJSON(inputs.changed).hello-world.unikraft.${{ inputs.monitor }}, ' '), amd64 }}"
3632
3733
build-image-amd64:
3834
name: Build and push image
39-
if: |
40-
contains(join(fromJSON(inputs.changed), ' '), inputs.monitor) &&
41-
contains(join(fromJSON(inputs.changed), ' '), 'amd64') &&
42-
contains(join(fromJSON(inputs.changed), ' '), 'hello-world')
35+
if: contains(join(fromJSON(inputs.changed).hello-world.unikraft.${{ inputs.monitor }}, ' '), amd64)
4336
uses: ./.github/workflows/build_images.yml
4437
with:
4538
monitor: ${{ inputs.monitor }}

hello-world/unikraft/firecracker/bunnyfile-firecracker-amd64 renamed to hello-world/unikraft/firecracker/bunnyfile-amd64

File renamed without changes.

hello-world/unikraft/firecracker/bunnyfile-firecracker-arm64 renamed to hello-world/unikraft/firecracker/bunnyfile-arm64

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)