From b37b96c6fc1027b95475d7d02db3123f5f5932a0 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 30 Nov 2020 15:46:15 +0100 Subject: [PATCH] trying to implement code signing support --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 42b9299..d49d4dc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,12 +24,9 @@ packaging: - wget https://github.com/ChristophWurst/krankerl/releases/download/v0.12.3/krankerl_0.12.3_amd64.deb - sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb krankerl_0.12.3_amd64.deb - krankerl package - - echo CI_PACKAGING_JOBID="${CI_JOB_ID}" > $CI_PROJECT_DIR/variables.env artifacts: paths: - build/artifacts/radio.tar.gz - reports: - dotenv: variables.env signing: stage: signing @@ -48,15 +45,18 @@ signing: - echo "-----BEGIN CERTIFICATE-----" > sign.crt - echo $SIGN_CRT | tr " " "\n" >> sign.crt - echo "-----END CERTIFICATE-----" >> sign.crt - - php nextcloud/occ - tar xvf build/artifacts/radio.tar.gz - php nextcloud/occ integrity:sign-app --path=$(pwd)/radio --privateKey=$(pwd)/sign.key --certificate=$(pwd)/sign.crt - - rm sign.key sign.crt - ls $(pwd)/radio/appinfo + - tar -czvf build/artifacts/radio.tar.gz radio + - rm -r sign.key sign.crt radio + - echo CI_PACKAGING_JOBID="${CI_JOB_ID}" > $CI_PROJECT_DIR/variables.env artifacts: paths: - build/artifacts/radio.tar.gz expire_in: never + reports: + dotenv: variables.env publishing: stage: publishing