Skip to content

Commit

Permalink
Working on building sample images
Browse files Browse the repository at this point in the history
  • Loading branch information
willdavsmith committed Dec 12, 2023
1 parent ecf4b71 commit 2ca2b42
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
port: 3000
container: demo
enableDapr: false
images: [samples/demo]
directories: [samples/demo/]
images: samples/demo
directories: samples/demo/
- name: dapr
runOnPullRequest: true
app: dapr
Expand Down Expand Up @@ -179,10 +179,13 @@ jobs:
- name: Build images
if: steps.gen-id.outputs.RUN_TEST == 'true'
run: |
echo ${{ matrix.images }}
for image in ${{ matrix.images }}; do
echo $image
cd $image.directory
images=$(echo ${{ matrix.images }} | sed "s/,/ /g")
directories=$(echo ${{ matrix.directories }} | sed "s/,/ /g")
for index in "${!images[@]}"; do
image=${images[$index]}
directory=${directories[$index]}
docker build -t localhost:51351/$image $directory
docker push localhost:51351/$image
done
- name: Install Dapr
if: steps.gen-id.outputs.RUN_TEST == 'true' && steps.gen-id.outputs.ENABLE_DAPR == 'true'
Expand Down

0 comments on commit 2ca2b42

Please sign in to comment.