trying to implement code signing support

This commit is contained in:
Jonas Heinrich 2020-11-30 15:29:21 +01:00
parent c84b0bffcf
commit be61051fe5

View File

@ -43,15 +43,22 @@ signing:
- apt-get install php7.2 - apt-get install php7.2
- wget https://download.nextcloud.com/server/releases/nextcloud-20.0.2.tar.bz2 - wget https://download.nextcloud.com/server/releases/nextcloud-20.0.2.tar.bz2
- tar xvf 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 - 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: publishing:
stage: publishing stage: publishing
image: registry.gitlab.com/gitlab-org/release-cli:latest image: registry.gitlab.com/gitlab-org/release-cli:latest
needs: needs:
- job: - job: signing
- signing
- packaging
- artifacts: true - artifacts: true
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG