Split build targets into CI jobs
This commit is contained in:
parent
a866e10fc8
commit
a256f5a791
1 changed files with 76 additions and 11 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- package
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
# Cache modules in between jobs
|
# Cache modules in between jobs
|
||||||
|
|
@ -11,21 +12,84 @@ cache:
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
image: electronuserland/builder:wine
|
image: electronuserland/builder:wine
|
||||||
retry: 2
|
|
||||||
script:
|
script:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run release
|
- npm run build
|
||||||
- tar -czvf "./release-builds/openflexure-ev-web.tar.gz" -C "./dist" .
|
artifacts:
|
||||||
|
name: "openflexure-ev-web"
|
||||||
|
paths:
|
||||||
|
- dist/
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
- web
|
||||||
|
|
||||||
|
package-raspi-deb:
|
||||||
|
stage: package
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
image: electronuserland/builder:wine
|
||||||
|
retry: 2
|
||||||
|
script:
|
||||||
|
- npm run dist:raspi
|
||||||
|
- mv ./release-builds/openflexure-ev-linux-armv7l.deb .
|
||||||
|
artifacts:
|
||||||
|
name: "openflexure-ev-linux-armv7l"
|
||||||
|
paths:
|
||||||
|
- openflexure-ev-linux-armv7l.deb
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
- web
|
||||||
|
|
||||||
|
package-linux-deb:
|
||||||
|
stage: package
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
image: electronuserland/builder:wine
|
||||||
|
retry: 2
|
||||||
|
script:
|
||||||
|
- npm run dist:linux
|
||||||
|
- mv ./release-builds/openflexure-ev-linux-amd64.deb .
|
||||||
|
artifacts:
|
||||||
|
name: "openflexure-ev-linux-amd64"
|
||||||
|
paths:
|
||||||
|
- openflexure-ev-linux-amd64.deb
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
- web
|
||||||
|
|
||||||
|
package-win32-exe:
|
||||||
|
stage: package
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
image: electronuserland/builder:wine
|
||||||
|
retry: 2
|
||||||
|
script:
|
||||||
|
- npm run dist:win
|
||||||
|
- mv ./release-builds/openflexure-ev-win.exe .
|
||||||
|
artifacts:
|
||||||
|
name: "openflexure-ev-win"
|
||||||
|
paths:
|
||||||
|
- openflexure-ev-win.exe
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
- web
|
||||||
|
|
||||||
|
package-win32-choco:
|
||||||
|
stage: package
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
image: electronuserland/builder:wine
|
||||||
|
retry: 2
|
||||||
|
script:
|
||||||
- chmod +x ./app/make-nupkg.sh
|
- chmod +x ./app/make-nupkg.sh
|
||||||
- ./app/make-nupkg.sh
|
- ./app/make-nupkg.sh
|
||||||
|
- mv ./release-builds/choco/openflexure-ev.nuspec .
|
||||||
|
- mv ./release-builds/choco/tools .
|
||||||
artifacts:
|
artifacts:
|
||||||
|
name: "openflexure-ev-choco-nuspec"
|
||||||
paths:
|
paths:
|
||||||
- release-builds/*.exe
|
- openflexure-ev.nuspec
|
||||||
- release-builds/*.deb
|
- tools/chocolateyInstall.ps1
|
||||||
- release-builds/*.AppImage
|
|
||||||
- release-builds/*.tar.gz
|
|
||||||
- release-builds/choco/openflexure-ev.nuspec
|
|
||||||
- release-builds/choco/tools/chocolateyInstall.ps1
|
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
- web
|
- web
|
||||||
|
|
@ -34,7 +98,7 @@ deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: patrickhuber/choco-linux
|
image: patrickhuber/choco-linux
|
||||||
dependencies:
|
dependencies:
|
||||||
- build
|
- package-win32-choco
|
||||||
script:
|
script:
|
||||||
- cd ./release-builds/choco
|
- cd ./release-builds/choco
|
||||||
- ls -R
|
- ls -R
|
||||||
|
|
@ -42,7 +106,8 @@ deploy:
|
||||||
- choco apikey --key $CHOCO_API_KEY --source https://push.chocolatey.org/
|
- choco apikey --key $CHOCO_API_KEY --source https://push.chocolatey.org/
|
||||||
- choco push --source https://push.chocolatey.org/
|
- choco push --source https://push.chocolatey.org/
|
||||||
artifacts:
|
artifacts:
|
||||||
|
name: "openflexure-ev-choco-nupkg"
|
||||||
paths:
|
paths:
|
||||||
- release-builds/choco/*.nupkg
|
- release-builds/choco/*.nupkg
|
||||||
only:
|
only:
|
||||||
- tags
|
- web
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue