summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2019-05-13 13:23:58 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2019-05-13 19:41:55 +0200
commita8a01aab7144549c573fbd4ea655e56bcce923d0 (patch)
treef2de2eea75b31a0d493953368de0952631f58715 /.gitlab-ci.yml
parenta7441a8dbfc99f161a9ea99bdd02695dbeb4c974 (diff)
setup a basic push test
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f83d784..f62881b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,6 +26,28 @@ build_test:
- 'bitmask-connect'
expire_in: 1 month
+branded_push:
+ image: 0xacab.org:4567/leap/docker/bitmask-vpn: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 riseup-vpn HEAD:master
+
win_installer:
image: 0xacab.org:4567/leap/docker/bitmask-systray:latest
stage: build