3 - PHP_MAJOR_VERSION: 7.4
10 # This prevents executing this pipeline at other servers than ci.friendi.ca
21 - git clone $CI_REPO_LINK .
22 - git checkout $CI_COMMIT_BRANCH
23 - git fetch origin $CI_COMMIT_REF
24 - git merge $CI_COMMIT_SHA
26 repo: friendica/friendica
30 image: meltwater/drone-cache:dev
34 cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
35 archive_format: "gzip"
39 - /tmp/drone-cache:/tmp/cache
41 repo: friendica/friendica
45 image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
47 - export COMPOSER_HOME=.composer
49 - composer install --no-dev --optimize-autoloader
51 repo: friendica/friendica
55 - /etc/hosts:/etc/hosts
60 - apt-get install bzip2
62 - export VERSION="$(cat VERSION)"
63 - export RELEASE="friendica-full-$VERSION"
64 - export ARTIFACT="$RELEASE.tar.gz"
66 --transform "s,^,$RELEASE/,S"
67 -X mods/release-list-exclude.txt
68 -T mods/release-list-include.txt
69 -cvzf ./build/$ARTIFACT
71 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
74 - cat "$ARTIFACT.sum256"
75 - sha256sum "$ARTIFACT"
77 repo: friendica/friendica
81 image: plugins/gpgsign
86 from_secret: gpg_password
93 repo: friendica/friendica
110 - /etc/hosts:/etc/hosts
112 - apk add lftp openssh openssl
114 - chmod 400 drone.key
115 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
118 set net:max-retries 2;
119 set net:reconnect-interval-base 5;
120 set sftp:auto-confirm true;
121 set sftp:connect-program 'ssh -q -a -x -i drone.key';
122 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
128 repo: friendica/friendica