From 5bba0b58d161ae1e988fc59b6edaba857b7d37e6 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Thu, 2 Aug 2018 21:06:04 +0000 Subject: [PATCH] Use artifacts. --- .gitlab-ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e895fb2..ae35405 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,10 +2,6 @@ stages: - preparation - build - deploy - -cache: - paths: - - tmp/ preparation-flatpak: image: debian:latest @@ -18,6 +14,9 @@ preparation-flatpak: - cd tmp - git clone "https://$GIT_USERNAME:$GIT_PASSWORD@gitlab.com/b0/matrique-repo" - cd ../ + artifacts: + paths: + - tmp/ build-native: image: rabits/qt:5.11-desktop @@ -40,11 +39,16 @@ build-flatpak: - cd flatpak - flatpak-builder --repo=../tmp/matrique-repo/public build-dir org.eu.encom.matrique.json --force-clean --gpg-sign=52986BF4D61350EC249F2E891B0DB3358FC5E4B2 - cd ../ + artifacts: + paths: + - tmp/ deploy-flatpak: - image: alpine/git + image: debian:latest stage: deploy before_script: + - apt-get update + - apt-get install -y git - git config --global user.name "$GIT_NAME" - git config --global user.email "$GIT_EMAIL" script: