Remove choco push from CI
This commit is contained in:
parent
a256f5a791
commit
cd2809d96a
1 changed files with 13 additions and 27 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- package
|
- package
|
||||||
- deploy
|
|
||||||
|
|
||||||
# Cache modules in between jobs
|
# Cache modules in between jobs
|
||||||
cache:
|
cache:
|
||||||
|
|
@ -9,6 +8,7 @@ cache:
|
||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
|
|
||||||
|
# Build basic webapp
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
image: electronuserland/builder:wine
|
image: electronuserland/builder:wine
|
||||||
|
|
@ -23,6 +23,7 @@ build:
|
||||||
- tags
|
- tags
|
||||||
- web
|
- web
|
||||||
|
|
||||||
|
# Platform-specific Electron builds
|
||||||
package-raspi-deb:
|
package-raspi-deb:
|
||||||
stage: package
|
stage: package
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
@ -74,40 +75,25 @@ package-win32-exe:
|
||||||
- tags
|
- tags
|
||||||
- web
|
- web
|
||||||
|
|
||||||
|
# Create a nupkg file for Choco package manager
|
||||||
package-win32-choco:
|
package-win32-choco:
|
||||||
stage: package
|
stage: build
|
||||||
dependencies:
|
image: patrickhuber/choco-linux
|
||||||
- build
|
|
||||||
image: electronuserland/builder:wine
|
|
||||||
retry: 2
|
|
||||||
script:
|
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:
|
|
||||||
name: "openflexure-ev-choco-nuspec"
|
|
||||||
paths:
|
|
||||||
- openflexure-ev.nuspec
|
|
||||||
- tools/chocolateyInstall.ps1
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
- web
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
stage: deploy
|
|
||||||
image: patrickhuber/choco-linux
|
|
||||||
dependencies:
|
|
||||||
- package-win32-choco
|
|
||||||
script:
|
|
||||||
- cd ./release-builds/choco
|
- cd ./release-builds/choco
|
||||||
- ls -R
|
|
||||||
- choco pack
|
- choco pack
|
||||||
- choco apikey --key $CHOCO_API_KEY --source https://push.chocolatey.org/
|
- cd ../../
|
||||||
- choco push --source https://push.chocolatey.org/
|
- mv ./release-builds/choco/openflexure-ev.nuspec .
|
||||||
|
- mv ./release-builds/choco/*.nupkg .
|
||||||
|
- mv ./release-builds/choco/tools .
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "openflexure-ev-choco-nupkg"
|
name: "openflexure-ev-choco-nupkg"
|
||||||
paths:
|
paths:
|
||||||
- release-builds/choco/*.nupkg
|
- ./openflexure-ev.nuspec
|
||||||
|
- tools/chocolateyInstall.ps1
|
||||||
|
- ./*.nupkg
|
||||||
only:
|
only:
|
||||||
|
- tags
|
||||||
- web
|
- web
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue