From e2f84fcb33b6fea507ef22d6d660f07af3cba68f Mon Sep 17 00:00:00 2001 From: fal7w <147312030+fal7w@users.noreply.github.com> Date: Sat, 9 Dec 2023 19:12:14 +0300 Subject: [PATCH] Update build_system_image.yml --- .github/workflows/build_system_image.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_system_image.yml b/.github/workflows/build_system_image.yml index e4fe7cf0..8af7f17f 100644 --- a/.github/workflows/build_system_image.yml +++ b/.github/workflows/build_system_image.yml @@ -28,10 +28,20 @@ jobs: job-image-build: runs-on: - self-hosted - + strategy: + matrix: + template-repo: ['fork-foxs/remittance_image_builder'] steps: - name: Checkout Repository uses: actions/checkout@v2 + with: + repository: ${{ matrix.remittance_image_builder }} + path: .github/workflows + - name: Run reusable template from another repo + run: | + cd .github/workflows + gh workflow run Reusable_build_image.yml + # with: # repository: malnozili/remittance_image_builder # token: ${{ secrets.GITHUB_TOKEN }} @@ -45,8 +55,6 @@ jobs: - name: build image run: | - git clone https://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@github.com/malnozili/remittance_image_builder.git - cd remittance_image_builder ../build_network_company_image.sh --tag="remittance_network_agent/${{ github.event.pull_request.head.ref }}:latest" --token="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" --frappe-path="https://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@github.com/fintechsys/frappe.git" --frappe-branch=${{ github.event.pull_request.head.ref }} # docker image ls