File: deploy.sh

package info (click to toggle)
neko 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,344 kB
  • sloc: ansic: 19,327; ml: 4,924; sh: 75; makefile: 24
file content (22 lines) | stat: -rwxr-xr-x 617 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash 

set -ex

if [ -z $haxeci_decrypt ]; then
    echo "haxeci_decrypt is unset, skip deploy"
    exit
fi

openssl aes-256-cbc -k "$haxeci_decrypt" -in haxeci_ssh.enc -out haxeci_ssh -d
chmod 600 haxeci_ssh
eval `ssh-agent -s`
ssh-add haxeci_ssh
openssl aes-256-cbc -k "$haxeci_decrypt" -in haxeci_sec.gpg.enc -out haxeci_sec.gpg -d
gpg --allow-secret-key-import --import haxeci_sec.gpg
sudo apt-get install devscripts git-buildpackage ubuntu-dev-tools dh-make dh-apache2 -y
git config --global user.name "${DEBFULLNAME}"
git config --global user.email "${DEBEMAIL}"

pushd build
    make upload_to_ppa
popd