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 $CI_REPO_LINK .
19 - git checkout $CI_COMMIT_BRANCH
20 - git fetch origin $CI_COMMIT_REF
21 - git merge $CI_COMMIT_SHA
23 repo: friendica/friendica
27 image: meltwater/drone-cache:dev
31 cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
32 archive_format: "gzip"
36 - /tmp/drone-cache:/tmp/cache
38 repo: friendica/friendica
42 image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
44 - export COMPOSER_HOME=.composer
46 - composer install --no-dev --optimize-autoloader
48 repo: friendica/friendica
52 - /etc/hosts:/etc/hosts
57 - apt-get install bzip2
59 - export VERSION="$(cat VERSION)"
60 - export RELEASE="friendica-full-$VERSION"
61 - export ARTIFACT="$RELEASE.tar.gz"
63 --transform "s,^,$RELEASE/,"
64 -X mods/release-list-exclude.txt
65 -T mods/release-list-include.txt
66 -cvzf ./build/$ARTIFACT
68 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
71 - cat "$ARTIFACT.sum256"
72 - sha256sum "$ARTIFACT"
74 repo: friendica/friendica
78 image: plugins/gpgsign
83 from_secret: gpg_password
90 repo: friendica/friendica
107 - /etc/hosts:/etc/hosts
109 - apk add lftp openssh openssl
111 - chmod 400 drone.key
112 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
115 set net:max-retries 2;
116 set net:reconnect-interval-base 5;
117 set sftp:auto-confirm true;
118 set sftp:connect-program 'ssh -q -a -x -i drone.key';
119 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
125 repo: friendica/friendica