summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorjak1 <mike.wollmann@gmail.com>2021-04-24 23:01:40 +0000
committerjak1 <mike.wollmann@gmail.com>2021-04-24 23:01:40 +0000
commit1935c3f18cd73a4396d3d603d49dfb14602a9a6a (patch)
treed4cec8c43766589a77e382f10b96b4cc5edbf5d2 /.gitlab-ci.yml
parentaad98941ea4a6d6f4f0b19fb027b4d5aca97feca (diff)
downloadappimg-builder-1935c3f18cd73a4396d3d603d49dfb14602a9a6a.tar.gz
appimg-builder-1935c3f18cd73a4396d3d603d49dfb14602a9a6a.tar.bz2
appimg-builder-1935c3f18cd73a4396d3d603d49dfb14602a9a6a.tar.xz
appimg-builder-1935c3f18cd73a4396d3d603d49dfb14602a9a6a.zip
adding deployment for *.deb pkg's
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml46
1 files changed, 42 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ab05769..30fe782 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,10 +15,10 @@ x86_64-AppImage:
script:
- cd ${CI_PROJECT_DIR}
- ls
- - chmod +x build.sh
+ - chmod +x build_appimg.sh
- chmod +x linuxdeploy-x86_64.AppImage
- ./linuxdeploy-x86_64.AppImage --appimage-extract
- - ./build.sh
+ - ./build_appimg.sh
- mv ManaPlus-*-x86_64.AppImage ManaPlus-x86_64.AppImage
- sha256sum ManaPlus-x86_64.AppImage > x86_64-sha256checksum.txt
- cd
@@ -41,10 +41,10 @@ i386-AppImage:
script:
- cd ${CI_PROJECT_DIR}
- ls
- - chmod +x build.sh
+ - chmod +x build_appimg.sh
- chmod +x linuxdeploy-i386.AppImage
- ./linuxdeploy-i386.AppImage --appimage-extract
- - ./build.sh
+ - ./build_appimg.sh
- mv ManaPlus-*-i386.AppImage ManaPlus-i386.AppImage
- sha256sum ManaPlus-i386.AppImage > i386-sha256checksum.txt
- cd
@@ -54,6 +54,35 @@ i386-AppImage:
- "ManaPlus-i386.AppImage"
- "i386-sha256checksum.txt"
+deb_pkg:
+ image: ubuntu:trusty
+ stage: build
+ tags:
+ - docker
+ before_script:
+ - apt-get update -qq
+ - chmod +x install_dependencies.sh
+ - ./install_dependencies.sh
+ script:
+ - cd ${CI_PROJECT_DIR}
+ - git clone https://gitlab.com/themanaworld/manaplus/manaplus.git manaplus
+ - cd manaplus
+ - cp -r packaging/debian .
+ - cd debian
+ - ../build/bdeb.sh
+ - cd ../../
+ - mv manaplus_*_amd64.deb manaplus_latest_amd64.deb
+ - mv manaplus-data_*_all.deb manaplus-data_latest_all.deb
+ - mv manaplus-dbg_*_amd64.deb manaplus-dbg_latest_amd64.deb
+ - sha256sum manaplus_latest_amd64.deb > deb-sha256checksum.txt
+ - sha256sum manaplus-data_latest_all.deb >> deb-sha256checksum.txt
+ - sha256sum manaplus-dbg_latest_amd64.deb >> deb-sha256checksum.txt
+ - find / -type f -name "*.deb"
+ artifacts:
+ paths:
+ - "*.deb"
+ - "deb-sha256checksum.txt"
+
# deploy
deploy-appImages:
stage: deploy
@@ -65,6 +94,15 @@ deploy-appImages:
- echo "${SSH_PRIVATE_KEY}" | base64 -d | tr -d '\r' > ~/.ssh/id_rsa
- chmod -R 700 ~/.ssh
script:
+ # appimgs
- scp -o StrictHostKeyChecking=no ManaPlus-x86_64.AppImage $MYHOST:$FILE_LOCATION
- scp -o StrictHostKeyChecking=no ManaPlus-i386.AppImage $MYHOST:$FILE_LOCATION
+ # debs
+ - scp -o StrictHostKeyChecking=no manaplus_latest_amd64.deb $MYHOST:$FILE_LOCATION
+ - scp -o StrictHostKeyChecking=no manaplus-data_latest_all.deb $MYHOST:$FILE_LOCATION
+ - scp -o StrictHostKeyChecking=no manaplus-dbg_latest_amd64.deb $MYHOST:$FILE_LOCATION
+ # checksums
+ - scp -o StrictHostKeyChecking=no x86_64-sha256checksum.txt $MYHOST:$FILE_LOCATION
+ - scp -o StrictHostKeyChecking=no i386-sha256checksum.txt $MYHOST:$FILE_LOCATION
+ - scp -o StrictHostKeyChecking=no deb-sha256checksum.txt $MYHOST:$FILE_LOCATION