Commit 1a91b88e authored by Chaoting Liu's avatar Chaoting Liu

update gitlab-ci to coherit among repos

parent 2314be23
Pipeline #6898 failed
......@@ -4,10 +4,8 @@ variables:
REPODIR: "$CI_PROJECT_DIR"
stages:
- package
- sign
- build
- deploy
- stable
before_script:
# import the gitlab-ci scripts
......@@ -17,10 +15,9 @@ before_script:
# import pgp keys flagged as valid
- sudo -u builder -E -H _gitlab-ci-scripts/import-validpgpkeys.sh
build_pkgs:
stage: package
except:
- master
makepkg:
stage: build
only:
- merge_requests
script:
# setup makepkg settings (enable and sync the correct repository), as root
......@@ -34,7 +31,7 @@ build_pkgs:
expire_in: 1 week
when: always
paths:
- ./_repo/gitlab-ci/*.pkg.tar.xz
- ./_repo/gitlab-ci/*.pkg.tar.*
- ./_logs/*.log
name: "$CI_BUILD_NAME"
cache:
......@@ -44,32 +41,10 @@ build_pkgs:
tags:
- PKGBUILD
sign_pkgs:
stage: sign
except:
- master
- merge_requests
script:
- for pkg in $(find . -type f | grep ".pkg.tar.xz"); do echo "signing $pkg" && echo "$GPG_PASSWORD" | gpg -sb --pinentry-mode loopback --passphrase-fd 0 $pkg; done
artifacts:
# expire artifacts per default - the gitlab web frontend can be used to keep
# artifacts of interest for an unlimited time
expire_in: 1 week
paths:
- ./_repo/gitlab-ci/*.pkg.tar.xz.sig
name: "$CI_BUILD_NAME"
tags:
- signature
deploy_pkgs:
stage: deploy
except:
- master
variables:
DEPLOY_SERVER: "$DEPLOY_SERVER"
SSH_USER: "$SSH_USER"
SSH_PORT: "$SSH_PORT"
GPG_PASSWORD: "$GPG_PASSWORD"
script:
- _gitlab-ci-scripts/deploy.sh
when: manual
......@@ -80,12 +55,6 @@ move_pkgs_to_stable:
stage: stable
except:
- master
variables:
DEPLOY_SERVER: "$DEPLOY_SERVER"
SSH_USER: "$SSH_USER"
SSH_PORT: "$SSH_PORT"
GPG_PASSWORD: "$GPG_PASSWORD"
DEST_REPO: "desktop"
script:
- _gitlab-ci-scripts/move.sh
when: manual
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment