From d217fdc890ef847574009bfdc5bcbf6fe1d25d5b Mon Sep 17 00:00:00 2001 From: "Rule Timothy (VM/EMT3)" Date: Wed, 27 Mar 2024 17:24:39 +0100 Subject: [PATCH] Tools CI workflow enabled. Signed-off-by: Rule Timothy (VM/EMT3) --- .github/workflows/ci.yaml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c9d9250..a304b63 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -128,9 +128,9 @@ jobs: ${{ env.build_dir }}/_dist/${{ env.package_name }}-${{ env.PACKAGE_VERSION }}-${{ matrix.package_arch }}.zip tools: - if: false + if: startsWith(github.ref, 'refs/tags/') runs-on: [ubuntu-latest] - needs: [ ] + needs: [build] steps: - name: Checkout uses: actions/checkout@v3 @@ -149,7 +149,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASE_NAME }}-simer + images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASE_NAME }}-network tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} @@ -163,25 +163,21 @@ jobs: - uses: actions/download-artifact@v3 with: name: ${{ env.package_name }}-linux-amd64-sandbox - path: sandbox/ModelC-linux-amd64-sandbox - - uses: actions/download-artifact@v3 - with: - name: ${{ env.package_name }}-linux-x86-sandbox - path: sandbox/ModelC-linux-x86-sandbox + path: sandbox/${{ env.package_name }}-linux-amd64-sandbox - name: Sandbox run: | (cd sandbox/${{ env.package_name }}-linux-amd64-sandbox; tar xzf sandbox_out.tar.gz) - (cd sandbox/${{ env.package_name }}-linux-x86-sandbox; tar xzf sandbox_out.tar.gz) - mkdir -p extra/tools/simer/build/stage - ls -R extra/tools/simer/build/stage + mkdir -p extra/tools/network/build/stage + cp -r licenses -t extra/tools/network/build/stage + ls -R extra/tools/network/build/stage - name: Build and push uses: docker/build-push-action@v4 with: push: true - context: extra/tools/simer - file: ./extra/tools/simer/build/package/Dockerfile + context: extra/tools/network + file: ./extra/tools/network/build/package/Dockerfile build-args: | PACKAGE_VERSION=${{ env.PACKAGE_VERSION }} tags: ${{ steps.meta.outputs.tags }}