diff options
| author | oldmud0 <3421260-oldmud0@users.noreply.gitlab.com> | 2019-01-21 03:06:30 +0000 |
|---|---|---|
| committer | oldmud0 <3421260-oldmud0@users.noreply.gitlab.com> | 2019-01-21 03:06:30 +0000 |
| commit | 21c9632de0e7132013291c22bff9117fac4f6c70 (patch) | |
| tree | ee786e5927f3052fbf7e5731d5cc3f6b7e107f42 | |
| parent | 9008ec8d9d41e8ce523ecad5ad310fed2dfb3d8c (diff) | |
Add cache and artifacts to .gitlab-ci.yml
| -rw-r--r-- | .gitlab-ci.yml | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 533533f5..b9c966df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,10 @@ image: rabits/qt:5.9-desktop +cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - lib/ + before_script: - echo Current working directory is $(pwd) - qmake --version @@ -18,9 +23,14 @@ build linux x86_64: - qmake - make -j4 - upx --lzma -9 --force bin/Attorney_Online + artifacts: + paths: + - bin/ deploy: stage: deploy + dependencies: + - build linux x86_64 tags: - docker - linux @@ -50,5 +60,10 @@ deploy: # Zipping # zip -r -9 -l Attorney_Online_$(git describe --tags)_linux_x86_64.zip . - - tar cavf Attorney_Online_$(git describe --tags)_x64.tar.xz * - - echo "Deployment completed - can we move on with the script now?"
\ No newline at end of file + - mkdir ../zip + - tar cavf ../zip/Attorney_Online_$(git describe --tags)_x64.tar.xz * + - sha1sum ../zip/* + + artifacts: + paths: + - zip/
\ No newline at end of file |
