From be61051fe5ac8fe850494e88c15f88970fcfd0f4 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 30 Nov 2020 15:29:21 +0100 Subject: [PATCH] trying to implement code signing support --- .gitlab-ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 261bdf2..36e8af6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,15 +43,22 @@ signing: - apt-get install php7.2 - wget https://download.nextcloud.com/server/releases/nextcloud-20.0.2.tar.bz2 - tar xvf nextcloud-20.0.2.tar.bz2 + - echo "-----BEGIN PRIVATE KEY-----" > sign.key + - echo $SIGN_KEY | tr " " "\n" >> sign.key + - echo "-----END PRIVATE KEY-----" >> sign.key + - echo "-----BEGIN CERTIFICATE-----" > sign.crt + - echo $SIGN_CRT | tr " " "\n" >> sign.crt + - echo "-----END CERTIFICATE-----" >> sign.crt - php nextcloud/occ + - ls build/artifacts/ + #- /usr/src/nextcloud/occ integrity:sign-app --path=$(pwd)/passwords --privateKey=$(pwd)/sign.key --certificate=$(pwd)/sign.crt + #- rm sign.key sign.crt publishing: stage: publishing image: registry.gitlab.com/gitlab-org/release-cli:latest needs: - - job: - - signing - - packaging + - job: signing - artifacts: true rules: - if: $CI_COMMIT_TAG