Commit c40d4fd4 authored by totte's avatar totte
Browse files

Revise as per melange#133

parent d7266218
Pipeline #4773 canceled with stages
in 54 seconds
......@@ -4,10 +4,9 @@ variables:
REPODIR: "$CI_PROJECT_DIR"
stages:
- package
- build
- sign
- deploy
- stable
before_script:
# import the gitlab-ci scripts
......@@ -17,8 +16,8 @@ before_script:
# import pgp keys flagged as valid
- sudo -u builder -E -H _gitlab-ci-scripts/import-validpgpkeys.sh
build_pkgs:
stage: package
makepkg:
stage: build
script:
# setup makepkg settings (enable and sync the correct repository), as root
- _gitlab-ci-scripts/prepare_makepkg.sh
......@@ -29,7 +28,6 @@ build_pkgs:
# expire artifacts per default - the gitlab web frontend can be used to keep
# artifacts of interest for an unlimited time
expire_in: 1 week
when: always
paths:
- ./_repo/gitlab-ci/*.pkg.tar.xz
- ./_logs/*.log
......@@ -41,10 +39,10 @@ build_pkgs:
tags:
- PKGBUILD
sign_pkgs:
gpg:
stage: sign
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
only:
- branches@chakra/packages/desktop
artifacts:
# expire artifacts per default - the gitlab web frontend can be used to keep
# artifacts of interest for an unlimited time
......@@ -54,30 +52,45 @@ sign_pkgs:
name: "$CI_BUILD_NAME"
tags:
- signature
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
deploy_pkgs:
deploy_to_testing:
stage: deploy
only:
- branches@chakra/packages/desktop
except:
- master@chakra/packages/desktop
when: manual
environment:
name: Testing
url: https://rsync.chakralinux.org/packages/testing/x86_64/
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
DEST_REPO: "testing"
tags:
- rsync
script:
- _gitlab-ci-scripts/deploy.sh
move_pkgs_to_stable:
stage: stable
deploy_to_stable:
stage: deploy
only:
- master@chakra/packages/desktop
when: manual
environment:
name: Stable
url: https://rsync.chakralinux.org/packages/desktop/x86_64/
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
tags:
- rsync
script:
- _gitlab-ci-scripts/deploy.sh
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