Skip to content

Commit

Permalink
Tools CI workflow enabled.
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (VM/EMT3) <[email protected]>
  • Loading branch information
timrulebosch committed Mar 27, 2024
1 parent f7a74b7 commit d217fdc
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}}
Expand All @@ -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 }}
Expand Down

0 comments on commit d217fdc

Please sign in to comment.