Skip to content
Snippets Groups Projects
Commit aba4581a authored by Jadyn Jäger's avatar Jadyn Jäger
Browse files

Added CI

parent d084f50b
No related branches found
No related tags found
No related merge requests found
Pipeline #975 passed with stage
in 36 seconds
build_release:
image: debian
stage: build
script:
- apt update > /dev/null
- apt install openssh-client git -y > /dev/null
#SSH
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_dsa
- chmod 600 ~/.ssh/id_dsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
#Building
- chmod -R 775 ./
- VERSION="0."$(git rev-list HEAD --count --merges)"."$(git rev-list HEAD --count --no-merges)
- sed -i s/"0.0.0"/"$VERSION"/g DEBIAN/control
- sed -i s/"=USER="/"$GITLAB_USER_LOGIN"/g DEBIAN/control
- cat DEBIAN/control
- rm -rf .git
- rm .gitlab-ci.yml
- dpkg -b ./ ../schedule.deb
#- scp ../eSign.deb deploy@10.16.0.6:/var/www/esign.lgsit.de/builds/notifyer_release_$(echo $VERSION).deb
#- scp ../eSign.deb deploy@10.16.0.6:/var/www/esign.lgsit.de/builds/notifyer_latest_release.deb
only:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment