3 - PHP_MAJOR_VERSION: 7.4
12 platform: releaser/release # This prevents executing this pipeline at other servers than ci.friendi.ca
16 image: meltwater/drone-cache:dev
20 cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
21 archive_format: "gzip"
25 - /tmp/drone-cache:/tmp/cache
27 repo: friendica/friendica
28 branch: [ develop, '*-rc' ]
31 image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
33 - export COMPOSER_HOME=.composer
35 - composer install --no-dev --optimize-autoloader
37 - /etc/hosts:/etc/hosts
39 repo: friendica/friendica
40 branch: [ develop, '*-rc' ]
46 - apt-get install bzip2
48 - export VERSION="$(cat VERSION)"
49 - export RELEASE="friendica-full-$VERSION"
50 - export ARTIFACT="$RELEASE.tar.gz"
52 --transform "s,^,$RELEASE/,"
53 -X mods/release-list-exclude.txt
54 -T mods/release-list-include.txt
55 -cvzf ./build/$ARTIFACT
57 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
60 - cat "$ARTIFACT.sum256"
61 - sha256sum "$ARTIFACT"
63 repo: friendica/friendica
64 branch: [ develop, '*-rc' ]
67 image: plugins/gpgsign
72 from_secret: gpg_password
79 repo: friendica/friendica
80 branch: [ develop, '*-rc' ]
96 - /etc/hosts:/etc/hosts
98 - apk add lftp openssh openssl
100 - chmod 400 drone.key
101 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
104 set net:max-retries 2;
105 set net:reconnect-interval-base 5;
106 set sftp:auto-confirm true;
107 set sftp:connect-program 'ssh -q -a -x -i drone.key';
108 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
114 repo: friendica/friendica
115 branch: [ develop, '*-rc' ]