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: ...@@ -4,10 +4,8 @@ variables:
REPODIR: "$CI_PROJECT_DIR" REPODIR: "$CI_PROJECT_DIR"
stages: stages:
- package - build
- sign
- deploy - deploy
- stable
before_script: before_script:
# import the gitlab-ci scripts # import the gitlab-ci scripts
...@@ -17,10 +15,9 @@ before_script: ...@@ -17,10 +15,9 @@ before_script:
# import pgp keys flagged as valid # import pgp keys flagged as valid
- sudo -u builder -E -H _gitlab-ci-scripts/import-validpgpkeys.sh - sudo -u builder -E -H _gitlab-ci-scripts/import-validpgpkeys.sh
build_pkgs: makepkg:
stage: package stage: build
except: only:
- master
- merge_requests - merge_requests
script: script:
# setup makepkg settings (enable and sync the correct repository), as root # setup makepkg settings (enable and sync the correct repository), as root
...@@ -34,7 +31,7 @@ build_pkgs: ...@@ -34,7 +31,7 @@ build_pkgs:
expire_in: 1 week expire_in: 1 week
when: always when: always
paths: paths:
- ./_repo/gitlab-ci/*.pkg.tar.xz - ./_repo/gitlab-ci/*.pkg.tar.*
- ./_logs/*.log - ./_logs/*.log
name: "$CI_BUILD_NAME" name: "$CI_BUILD_NAME"
cache: cache:
...@@ -44,32 +41,10 @@ build_pkgs: ...@@ -44,32 +41,10 @@ build_pkgs:
tags: tags:
- PKGBUILD - 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: deploy_pkgs:
stage: deploy stage: deploy
except: except:
- master - master
variables:
DEPLOY_SERVER: "$DEPLOY_SERVER"
SSH_USER: "$SSH_USER"
SSH_PORT: "$SSH_PORT"
GPG_PASSWORD: "$GPG_PASSWORD"
script: script:
- _gitlab-ci-scripts/deploy.sh - _gitlab-ci-scripts/deploy.sh
when: manual when: manual
...@@ -80,12 +55,6 @@ move_pkgs_to_stable: ...@@ -80,12 +55,6 @@ move_pkgs_to_stable:
stage: stable stage: stable
except: except:
- master - master
variables:
DEPLOY_SERVER: "$DEPLOY_SERVER"
SSH_USER: "$SSH_USER"
SSH_PORT: "$SSH_PORT"
GPG_PASSWORD: "$GPG_PASSWORD"
DEST_REPO: "desktop"
script: script:
- _gitlab-ci-scripts/move.sh - _gitlab-ci-scripts/move.sh
when: manual 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