diff options
| author | KunoiSayami <[email protected]> | 2021-10-25 20:30:19 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2021-10-25 20:30:52 +0800 |
| commit | d7e8e9d410dff367ec500e97a764c853de1148a5 (patch) | |
| tree | 8bd588cabaf2b25b625833e11116b82d2723b1df /.gitlab-ci.yml | |
| parent | 59e9b91e2165d835069b5e7422d57e2fa83859d7 (diff) | |
feat(ci): Split post stage from build stage
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 141dfc2..98b22d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,15 @@ default: + tags: + - medium image: archlinux:latest +stages: + - pkg + - post + build: - tags: - - medium + stage: pkg only: changes: @@ -20,5 +25,19 @@ build: - chown -R build:build ../$CI_PROJECT_TITLE - su -c "bash -c 'cd repo/pod2man && makepkg -i --noconfirm'" build - su -c 'gpg --import ../key.asc' build - - su -c 'BUILD_ONLY='' ./pkgbuild.sh' build + - su -c 'BUILD_ONLY='' ./pkgbuild.sh --all' build + +# only push to master master trigger push +push: + stage: post + + rules: + - if: '$CI_COMMIT_BRANCH == "master"' + + only: + changes: + - repo/**/* + + script: + - cd /home/build/$CI_PROJECT_TITLE - su -m -c './ci-upload.sh' build |
