summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2019-05-15 16:31:46 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2019-05-15 16:31:46 +0200
commit75bb409fa598766bb550fe703654a77cdec9a791 (patch)
tree6da07199f9bfd56f86392ec91104b0cdd31c2fdf /.gitlab-ci.yml
parent356c8add947478c3a669bcc0c76bfc51f09e9d49 (diff)
[ci] separate push into its own stage
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml50
1 files changed, 26 insertions, 24 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b897e62..80d5387 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,8 @@
---
stages:
- build
- - trigger-deb
+ - push
+ - trigger
variables:
GOPATH: /go
@@ -27,28 +28,6 @@ build_test:
- 'bitmask-connect'
expire_in: 1 month
-branded_push:
- image: 0xacab.org:4567/leap/docker/bitmask-systray:latest
- stage: build
- script:
- # install the command-line openssh client to manage private keys
- - apt install -y openssh-client
- # activate the ssh-agent
- - eval $(ssh-agent -s)
- # load the private key, which is accessed vi a gitlab CI secret environment variable
- # We're using tr to fix line endings which makes ed25519 keys work
- # without extra base64 encoding.
- - ssh-add <(echo "$RISEUP_VPN_PACKAGE_SSH_KEY")
- - mkdir -p ~/.ssh
- # ensure that ssh will trust a new host, instead of asking
- - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- # we also need to configure name and email for git user
- - git config user.name "Gitlab CI"
- - git config user.email "gitlabci@0xacab.org"
- # Add the remote repository and push to it
- - git remote add riseup-vpn git@0xacab.org:leap/riseup-vpn_package.git
- - git push --force riseup-vpn HEAD:incoming
-
win_installer:
image: 0xacab.org:4567/leap/docker/bitmask-systray:latest
stage: build
@@ -140,8 +119,31 @@ deb:
# expire_in: 1 month
+branded_push:
+ image: 0xacab.org:4567/leap/docker/bitmask-systray:latest
+ stage: push
+ script:
+ # install the command-line openssh client to manage private keys
+ - apt install -y openssh-client
+ # activate the ssh-agent
+ - eval $(ssh-agent -s)
+ # load the private key, which is accessed vi a gitlab CI secret environment variable
+ # We're using tr to fix line endings which makes ed25519 keys work
+ # without extra base64 encoding.
+ - ssh-add <(echo "$RISEUP_VPN_PACKAGE_SSH_KEY")
+ - mkdir -p ~/.ssh
+ # ensure that ssh will trust a new host, instead of asking
+ - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
+ # we also need to configure name and email for git user
+ - git config user.name "Gitlab CI"
+ - git config user.email "gitlabci@0xacab.org"
+ # Add the remote repository and push to it
+ - git remote add riseup-vpn git@0xacab.org:leap/riseup-vpn_package.git
+ - git push --force riseup-vpn HEAD:incoming
+
+
trigger_deb:
image: 0xacab.org:4567/leap/docker/buster_amd64:latest
- stage: trigger-deb
+ stage: trigger
script:
- "curl -X POST -F token=$RISEUP_VPN_DEB_TRIGGER_TOKEN -F ref=master https://0xacab.org/api/v4/projects/1916/trigger/pipeline"