Add cache and artifacts to .gitlab-ci.yml
This commit is contained in:
parent
9008ec8d9d
commit
21c9632de0
@ -1,5 +1,10 @@
|
|||||||
image: rabits/qt:5.9-desktop
|
image: rabits/qt:5.9-desktop
|
||||||
|
|
||||||
|
cache:
|
||||||
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
|
paths:
|
||||||
|
- lib/
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- echo Current working directory is $(pwd)
|
- echo Current working directory is $(pwd)
|
||||||
- qmake --version
|
- qmake --version
|
||||||
@ -18,9 +23,14 @@ build linux x86_64:
|
|||||||
- qmake
|
- qmake
|
||||||
- make -j4
|
- make -j4
|
||||||
- upx --lzma -9 --force bin/Attorney_Online
|
- upx --lzma -9 --force bin/Attorney_Online
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- bin/
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
dependencies:
|
||||||
|
- build linux x86_64
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- linux
|
- linux
|
||||||
@ -50,5 +60,10 @@ deploy:
|
|||||||
|
|
||||||
# Zipping
|
# Zipping
|
||||||
# zip -r -9 -l Attorney_Online_$(git describe --tags)_linux_x86_64.zip .
|
# zip -r -9 -l Attorney_Online_$(git describe --tags)_linux_x86_64.zip .
|
||||||
- tar cavf Attorney_Online_$(git describe --tags)_x64.tar.xz *
|
- mkdir ../zip
|
||||||
- echo "Deployment completed - can we move on with the script now?"
|
- tar cavf ../zip/Attorney_Online_$(git describe --tags)_x64.tar.xz *
|
||||||
|
- sha1sum ../zip/*
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- zip/
|
Loading…
Reference in New Issue
Block a user