3 - PHP_MAJOR_VERSION: 7.4
12 # This prevents executing this pipeline at other servers than ci.friendi.ca
23 - git clone $CI_REPO_LINK .
24 - git checkout $CI_COMMIT_BRANCH
25 - git fetch origin $CI_COMMIT_REF
26 - git merge $CI_COMMIT_SHA
28 repo: friendica/friendica
29 branch: [ develop, '*-rc' ]
32 image: meltwater/drone-cache:dev
36 cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
37 archive_format: "gzip"
41 - /tmp/drone-cache:/tmp/cache
43 repo: friendica/friendica
44 branch: [ develop, '*-rc' ]
47 image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
49 - export COMPOSER_HOME=.composer
51 - composer install --no-dev --optimize-autoloader
53 - /etc/hosts:/etc/hosts
55 repo: friendica/friendica
56 branch: [ develop, '*-rc' ]
62 - apt-get install bzip2
64 - export VERSION="$(cat VERSION)"
65 - export RELEASE="friendica-full-$VERSION"
66 - export ARTIFACT="$RELEASE.tar.gz"
68 --transform "s,^,$RELEASE/,S"
69 -X mods/release-list-exclude.txt
70 -T mods/release-list-include.txt
71 -cvzf ./build/$ARTIFACT
73 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
76 - cat "$ARTIFACT.sum256"
77 - sha256sum "$ARTIFACT"
79 repo: friendica/friendica
80 branch: [ develop, '*-rc' ]
83 image: plugins/gpgsign
88 from_secret: gpg_password
95 repo: friendica/friendica
96 branch: [ develop, '*-rc' ]
112 - /etc/hosts:/etc/hosts
114 - apk add lftp openssh openssl
116 - chmod 400 drone.key
117 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
120 set net:max-retries 2;
121 set net:reconnect-interval-base 5;
122 set sftp:auto-confirm true;
123 set sftp:connect-program 'ssh -q -a -x -i drone.key';
124 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
130 repo: friendica/friendica
131 branch: [ develop, '*-rc' ]