forked from pydt/client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
42 lines (41 loc) · 1.4 KB
/
.gitlab-ci.yml
File metadata and controls
42 lines (41 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
deploy-win:
image: electronuserland/electron-builder:wine
environment: production-win
before_script:
- apt-get update
# install ssh-agent
- 'which ssh-agent || ( apt-get install openssh-client -y )'
# run ssh-agent
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- echo "$SSH_PRIVATE_KEY" > .tempKey
- chmod 0600 .tempKey
- ssh-add .tempKey
# disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks)
# WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script:
- apt-get install -y git
- sed -i -e 's/https:\/\/gitlab.com\/civx/ssh+git:\/\/git@gitlab.com:civx/g' package.json
- npm install --silent && npm prune && npm run dist-win
only:
- master
tags:
- docker
deploy-mac:
environment: production-mac
before_script:
# run ssh-agent
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- echo "$SSH_PRIVATE_KEY" > .tempKey
- chmod 0600 .tempKey
- ssh-add .tempKey
script:
- sed -i -e 's/https:\/\/gitlab.com\/civx/ssh+git:\/\/git@gitlab.com:civx/g' package.json
- npm install --silent && npm prune && npm run dist-mac
only:
- master
tags:
- mac