3 - PHP_MAJOR_VERSION: 7.4
10 platform: releaser/release # This prevents executing this pipeline at other servers than ci.friendi.ca
14 image: meltwater/drone-cache:dev
18 cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
19 archive_format: "gzip"
23 - /tmp/drone-cache:/tmp/cache
25 repo: friendica/friendica
29 image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
31 - export COMPOSER_HOME=.composer
33 - composer install --no-dev --optimize-autoloader
35 repo: friendica/friendica
42 - apt-get install bzip2
44 - export VERSION="$(cat VERSION)"
45 - export RELEASE="friendica-full-$VERSION"
46 - export ARTIFACT="$RELEASE.tar.gz"
48 --transform "s,^,$RELEASE/,"
49 -X mods/release-list-exclude.txt
50 -T mods/release-list-include.txt
51 -cvzf ./build/$ARTIFACT
53 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
56 - cat "$ARTIFACT.sum256"
57 - sha256sum "$ARTIFACT"
59 repo: friendica/friendica
63 image: plugins/gpgsign
68 from_secret: gpg_password
75 repo: friendica/friendica
92 - /etc/hosts:/etc/hosts
94 - apk add lftp openssh openssl
97 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
100 set net:max-retries 2;
101 set net:reconnect-interval-base 5;
102 set sftp:auto-confirm true;
103 set sftp:connect-program 'ssh -q -a -x -i drone.key';
104 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
110 repo: friendica/friendica