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