5 # This prevents executing this pipeline at other servers than ci.friendi.ca
16 - git clone $CI_REPO_LINK .
17 - git checkout $CI_COMMIT_BRANCH
18 - git fetch origin $CI_COMMIT_REF
19 - git merge $CI_COMMIT_SHA
21 repo: friendica/friendica
25 image: meltwater/drone-cache:dev
29 cache_key: "{{ .Repo.Name }}_php7.4_{{ arch }}_{{ os }}"
30 archive_format: "gzip"
34 - /tmp/drone-cache:/tmp/cache
36 repo: friendica/friendica
40 image: friendicaci/php7.4:php7.4.18
42 - export COMPOSER_HOME=.composer
44 - composer install --no-dev --optimize-autoloader
46 repo: friendica/friendica
50 - /etc/hosts:/etc/hosts
55 - apt-get install bzip2
57 - export VERSION="$(cat VERSION)"
58 - export RELEASE="friendica-full-$VERSION"
59 - export ARTIFACT="$RELEASE.tar.gz"
61 --transform "s,^,$RELEASE/,S"
62 -X mods/release-list-exclude.txt
63 -T mods/release-list-include.txt
64 -cvzf ./build/$ARTIFACT
66 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
69 - cat "$ARTIFACT.sum256"
70 - sha256sum "$ARTIFACT"
72 repo: friendica/friendica
76 image: plugins/gpgsign
81 from_secret: gpg_password
88 repo: friendica/friendica
105 - /etc/hosts:/etc/hosts
107 - apk add lftp openssh openssl
109 - chmod 400 drone.key
110 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
113 set net:max-retries 2;
114 set net:reconnect-interval-base 5;
115 set sftp:auto-confirm true;
116 set sftp:connect-program 'ssh -q -a -x -i drone.key';
117 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
123 repo: friendica/friendica