3 - PHP_MAJOR_VERSION: 7.4
10 platform: releaser/release # This prevents executing this pipeline at other servers than ci.friendi.ca
18 - git clone https://github.com/friendica/friendica.git .
19 - git checkout $CI_COMMIT_BRANCH
21 repo: friendica/friendica-addons
22 branch: [ develop, '*-rc' ]
24 clone_friendica_addon:
27 - git clone $CI_REPO_LINK addon
29 - git checkout $CI_COMMIT_BRANCH
30 - git fetch origin $CI_COMMIT_REF
31 - git merge $CI_COMMIT_SHA
33 repo: friendica/friendica-addons
34 branch: [ develop, '*-rc' ]
37 image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
39 - export COMPOSER_HOME=.composer
41 - composer install --no-dev --optimize-autoloader
43 - /etc/hosts:/etc/hosts
45 repo: friendica/friendica-addons
46 branch: [ develop, '*-rc' ]
52 - apt-get install bzip2
53 - export VERSION="$(cat VERSION)"
54 - export RELEASE="friendica-addons-$VERSION"
55 - export ARTIFACT="$RELEASE.tar.gz"
60 --exclude='.editorconfig'
61 --exclude='.gitattributes'
62 --exclude='.gitignore'
63 --exclude='.drone.yml'
64 --exclude='**/*/messages.po'
65 -cvzf ./build/$ARTIFACT addon/
67 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
70 - cat "$ARTIFACT.sum256"
71 - sha256sum "$ARTIFACT"
73 repo: friendica/friendica-addons
74 branch: [ develop, '*-rc' ]
77 image: plugins/gpgsign
82 from_secret: gpg_password
89 repo: friendica/friendica-addons
90 branch: [ develop, '*-rc' ]
106 - /etc/hosts:/etc/hosts
108 - apk add lftp openssh openssl
110 - chmod 400 drone.key
111 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
114 set net:max-retries 2;
115 set net:reconnect-interval-base 5;
116 set sftp:auto-confirm true;
117 set sftp:connect-program 'ssh -q -a -x -i drone.key';
118 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
124 repo: friendica/friendica-addons
125 branch: [ develop, '*-rc' ]