3 - PHP_MAJOR_VERSION: 7.4
12 platform: releaser/release # This prevents executing this pipeline at other servers than ci.friendi.ca
20 - git clone $CI_REPO_LINK .
21 - git checkout $CI_COMMIT_BRANCH
22 - git fetch origin $CI_COMMIT_REF
23 - git merge $CI_COMMIT_SHA
25 repo: friendica/friendica
26 branch: [ develop, '*-rc' ]
29 image: meltwater/drone-cache:dev
33 cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
34 archive_format: "gzip"
38 - /tmp/drone-cache:/tmp/cache
40 repo: friendica/friendica
41 branch: [ develop, '*-rc' ]
44 image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
46 - export COMPOSER_HOME=.composer
48 - composer install --no-dev --optimize-autoloader
50 - /etc/hosts:/etc/hosts
52 repo: friendica/friendica
53 branch: [ develop, '*-rc' ]
59 - apt-get install bzip2
61 - export VERSION="$(cat VERSION)"
62 - export RELEASE="friendica-full-$VERSION"
63 - export ARTIFACT="$RELEASE.tar.gz"
65 --transform "s,^,$RELEASE/,"
66 -X mods/release-list-exclude.txt
67 -T mods/release-list-include.txt
68 -cvzf ./build/$ARTIFACT
70 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
73 - cat "$ARTIFACT.sum256"
74 - sha256sum "$ARTIFACT"
76 repo: friendica/friendica
77 branch: [ develop, '*-rc' ]
80 image: plugins/gpgsign
85 from_secret: gpg_password
92 repo: friendica/friendica
93 branch: [ develop, '*-rc' ]
109 - /etc/hosts:/etc/hosts
111 - apk add lftp openssh openssl
113 - chmod 400 drone.key
114 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
117 set net:max-retries 2;
118 set net:reconnect-interval-base 5;
119 set sftp:auto-confirm true;
120 set sftp:connect-program 'ssh -q -a -x -i drone.key';
121 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
127 repo: friendica/friendica
128 branch: [ develop, '*-rc' ]