Skip to content

MARP-1580 Merge master to develop (#85) #14

MARP-1580 Merge master to develop (#85)

MARP-1580 Merge master to develop (#85) #14

name: Stagging-Deploy-Build
on:
push:
branches: [ "develop" ]
workflow_dispatch:
jobs:
build:
uses: axonivy-market/github-workflows/.github/workflows/ci.yml@v5
with:
mvnArgs: '"-Divy.engine.download.url=https://dev.axonivy.com/permalink/12/axonivy-engine.zip" "-Divy.engine.version=12.0.0" "-Dproject.build.plugin.version=12.0.0" "-Dtester.version=12.0.1"'
javaVersion: 21
mvnVersion: 3.9.8
deploy:
needs: build
runs-on: 'bpmn-statistic'
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
pom.xml
sparse-checkout-cone-mode: false
- name: Download artifact
uses: actions/download-artifact@v4
- name: Copy file
run: |
version=$(xml sel -t -m "//_:project" -v _:version pom.xml)
artifactDir=artifact/process-analyser
engineDeployDir=/var/tools/ivy/12/deploy/PROCESS-ANALYSER
install -m 666 ${artifactDir}/target/process-analyser-${version}.iar $engineDeployDir/process-analyser-${version}.iar
install -m 666 ${artifactDir}-demo/target/process-analyser-demo-${version}.iar $engineDeployDir/process-analyser-demo-${version}.iar
- name: Restart engine
run: |
cd /etc/docker-compose/engine/12
docker compose restart