Update to test SSH deployment
This commit is contained in:
parent
0f4db3f5d4
commit
2dbf593102
1 changed files with 13 additions and 18 deletions
|
|
@ -8,23 +8,6 @@ cache:
|
|||
paths:
|
||||
- node_modules/
|
||||
|
||||
# Basic webapp build
|
||||
build:
|
||||
stage: build
|
||||
image: electronuserland/builder:wine
|
||||
script:
|
||||
- npm install
|
||||
- npm run build:web
|
||||
artifacts:
|
||||
name: "build"
|
||||
paths:
|
||||
- dist/
|
||||
only:
|
||||
- stable
|
||||
- tags
|
||||
- web
|
||||
|
||||
|
||||
# Electron app build
|
||||
package:
|
||||
stage: build
|
||||
|
|
@ -41,6 +24,7 @@ package:
|
|||
- mv ./release-builds/?(beta*.yml|latest*.yml) .
|
||||
artifacts:
|
||||
name: "dist"
|
||||
expire_in: 1 day
|
||||
paths:
|
||||
- "*.AppImage"
|
||||
- "*.deb"
|
||||
|
|
@ -49,8 +33,19 @@ package:
|
|||
- "latest*.yml"
|
||||
- "beta*.yml"
|
||||
only:
|
||||
- stable
|
||||
- tags
|
||||
|
||||
deploy:
|
||||
image: ubuntu:latest
|
||||
before_script:
|
||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||
- eval $(ssh-agent -s)
|
||||
- ssh-add <(echo "$SSH_PRIVATE_KEY_BASE64" | base64 --decode)
|
||||
- mkdir -p ~/.ssh
|
||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||
script:
|
||||
- ssh -t ci-user@openflexure.bath.ac.uk "touch test.txt"
|
||||
only:
|
||||
- web
|
||||
|
||||
# Create a nupkg file for Choco package manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue