Skip to content

Commit 9751095

Browse files
committed
update docker publish workflow
Signed-off-by: wwanarif <[email protected]>
1 parent 1168507 commit 9751095

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/manual-docker-publish.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,26 @@ jobs:
4646
publish:
4747
strategy:
4848
matrix:
49-
image: ${{ fromJson('[ "studio-frontend", "studio-backend", "app-frontend", "app-backend" ]') }}
49+
include:
50+
- image: "studio-frontend"
51+
run: ${{ inputs.studio_frontend }}
52+
- image: "studio-backend"
53+
run: ${{ inputs.studio_backend }}
54+
- image: "app-frontend"
55+
run: ${{ inputs.app_frontend }}
56+
- image: "app-backend"
57+
run: ${{ inputs.app_backend }}
5058
fail-fast: false
5159
runs-on: "docker-build-${{ inputs.node }}"
5260
steps:
5361
- uses: docker/[email protected]
62+
if: ${{ matrix.run == true }}
5463
with:
5564
username: ${{ secrets.DOCKERHUB_USER }}
5665
password: ${{ secrets.DOCKERHUB_TOKEN }}
5766

58-
- name: Check if image should be published
59-
if: ${{ github.event.inputs[ matrix.image ] == 'true' }}
60-
run: echo "Publishing ${{ matrix.image }} image"
61-
6267
- name: Image Publish
63-
if: ${{ github.event.inputs[ matrix.image ] == 'true' }}
68+
if: ${{ matrix.run == true }}
6469
uses: opea-project/validation/actions/image-publish@main
6570
with:
6671
local_image_ref: ${OPEA_IMAGE_REPO}opea/${{ matrix.image }}:${{ inputs.tag }}

0 commit comments

Comments
 (0)