diff options
author | jak1 <mike.wollmann@gmail.com> | 2020-12-07 22:55:48 +0000 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2020-12-07 22:55:48 +0000 |
commit | f08686d973c775d15e8d900fa4e08d9fdf442468 (patch) | |
tree | 4ee20fe552343bae6bcf180efca61b30e7799ad9 /.gitlab-ci.yml | |
parent | 66d17541af2b0a2d2a0c06fd21f0090358b93499 (diff) | |
download | appimg-builder-f08686d973c775d15e8d900fa4e08d9fdf442468.tar.gz appimg-builder-f08686d973c775d15e8d900fa4e08d9fdf442468.tar.bz2 appimg-builder-f08686d973c775d15e8d900fa4e08d9fdf442468.tar.xz appimg-builder-f08686d973c775d15e8d900fa4e08d9fdf442468.zip |
added i386 appimage build & deploy job
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 61 |
1 files changed, 51 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c844d6f..5f3f82c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,29 +1,70 @@ -.stages: +stages: - build - - test - deploy -BuildAppImage: +# x86_64 AppImage buid +x86_64-AppImage: image: ubuntu:trusty + stage: build + tags: + - docker before_script: - apt-get update -qq - chmod +x install_dependencies.sh - ./install_dependencies.sh - tags: - - docker - script: - - ls /builds/ - cd /builds/jak89_1/appimg-builder + - ls - chmod +x build.sh - chmod +x linuxdeploy-x86_64.AppImage - ./linuxdeploy-x86_64.AppImage --appimage-extract - ./build.sh - - sha256sum ManaPlus-x86_64.AppImage > sha256checksum.txt + - mv ManaPlus-*-x86_64.AppImage ManaPlus-x86_64.AppImage + - sha256sum ManaPlus-x86_64.AppImage > x86_64-sha256checksum.txt - cd - find / -type f -name "*.AppImage" - artifacts: paths: - "ManaPlus-x86_64.AppImage" - - "sha256checksum.txt"
\ No newline at end of file + - "x86_64-sha256checksum.txt" + +# i386 AppImage buid +i386-AppImage: + image: i386/ubuntu:trusty + stage: build + tags: + - docker + before_script: + - apt-get update -qq + - chmod +x install_dependencies.sh + - ./install_dependencies.sh + script: + - cd /builds/jak89_1/appimg-builder + - ls + - chmod +x build.sh + - chmod +x linuxdeploy-i386.AppImage + - ./linuxdeploy-i386.AppImage --appimage-extract + - ./build.sh + - mv ManaPlus-*-i386.AppImage ManaPlus-i386.AppImage + - sha256sum ManaPlus-i386.AppImage > i386-sha256checksum.txt + - cd + - find / -type f -name "*.AppImage" + artifacts: + paths: + - "ManaPlus-i386.AppImage" + - "i386-sha256checksum.txt" + +# deploy +deploy-appImages: + stage: deploy + image: alpine + before_script: + - apk add openssh-client zip + - eval $(ssh-agent -s) + - mkdir -p ~/.ssh + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa + - chmod -R 700 ~/.ssh + script: + - scp -o StrictHostKeyChecking=no ManaPlus-x86_64.AppImage $MYHOST:$FILE_LOCATION + - scp -o StrictHostKeyChecking=no ManaPlus-i386.AppImage $MYHOST:$FILE_LOCATION + |