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:
|
paths:
|
||||||
- node_modules/
|
- 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
|
# Electron app build
|
||||||
package:
|
package:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
@ -41,6 +24,7 @@ package:
|
||||||
- mv ./release-builds/?(beta*.yml|latest*.yml) .
|
- mv ./release-builds/?(beta*.yml|latest*.yml) .
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "dist"
|
name: "dist"
|
||||||
|
expire_in: 1 day
|
||||||
paths:
|
paths:
|
||||||
- "*.AppImage"
|
- "*.AppImage"
|
||||||
- "*.deb"
|
- "*.deb"
|
||||||
|
|
@ -49,8 +33,19 @@ package:
|
||||||
- "latest*.yml"
|
- "latest*.yml"
|
||||||
- "beta*.yml"
|
- "beta*.yml"
|
||||||
only:
|
only:
|
||||||
- stable
|
|
||||||
- tags
|
- 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
|
- web
|
||||||
|
|
||||||
# Create a nupkg file for Choco package manager
|
# Create a nupkg file for Choco package manager
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue