Fix artifacts issue.

This commit is contained in:
Black Hat 2018-08-02 19:53:25 +00:00
parent 37d9eb7670
commit adedcd5beb
1 changed files with 8 additions and 7 deletions

View File

@ -7,14 +7,14 @@ preparation-flatpak:
image: black0/flatpak image: black0/flatpak
stage: preparation stage: preparation
script: script:
- cd /tmp - cd ../
- git clone "https://$GIT_USERNAME:$GIT_PASSWORD@gitlab.com/b0/matrique-repo" - git clone "https://$GIT_USERNAME:$GIT_PASSWORD@gitlab.com/b0/matrique-repo"
- cd /builds/b0/matrique - cd matrique
artifacts: artifacts:
untracked: true untracked: true
paths: paths:
- /tmp/matrique-repo/ - ../matrique-repo
build-native: build-native:
image: rabits/qt:5.11-desktop image: rabits/qt:5.11-desktop
@ -38,11 +38,12 @@ build-flatpak:
script: script:
- gpg2 -v --import <(echo "$GPG_SECRET_KEY") - gpg2 -v --import <(echo "$GPG_SECRET_KEY")
- cd flatpak - cd flatpak
- flatpak-builder --repo=/tmp/matrique-repo/public build-dir org.eu.encom.matrique.json --force-clean --gpg-sign=52986BF4D61350EC249F2E891B0DB3358FC5E4B2 - flatpak-builder --repo=../../matrique-repo/public build-dir org.eu.encom.matrique.json --force-clean --gpg-sign=52986BF4D61350EC249F2E891B0DB3358FC5E4B2
- cd ../
artifacts: artifacts:
untracked: true untracked: true
paths: paths:
- /tmp/matrique-repo/ - ../matrique-repo
deploy-flatpak: deploy-flatpak:
image: fedora:latest image: fedora:latest
@ -51,7 +52,7 @@ deploy-flatpak:
- git config --global user.name "$GIT_NAME" - git config --global user.name "$GIT_NAME"
- git config --global user.email "$GIT_EMAIL" - git config --global user.email "$GIT_EMAIL"
script: script:
- cd /tmp/matrique-repo - cd ../matrique-repo
- git add -A - git add -A
- git commit -m "$CI_COMMIT_MESSAGE" - git commit -m "$CI_COMMIT_MESSAGE"
- git push origin master - git push origin master