3 - PHP_MAJOR_VERSION: 7.4
6 platform: releaser/release # This prevents executing this pipeline at other servers than ci.friendi.ca
14 - git clone https://github.com/friendica/friendica.git .
15 - git checkout $CI_COMMIT_BRANCH
17 repo: friendica/friendica-addons
18 branch: [ develop, '*-rc' ]
20 clone_friendica_addon:
23 - git config --global user.email "no-reply@friendi.ca"
24 - git config --global user.name "Friendica"
25 - git clone $CI_REPO_LINK addon
27 - git checkout $CI_COMMIT_BRANCH
28 - git fetch origin $CI_COMMIT_REF
29 - git merge $CI_COMMIT_SHA
31 repo: friendica/friendica-addons
32 branch: [ develop, '*-rc' ]
35 image: meltwater/drone-cache:dev
39 cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
40 archive_format: "gzip"
44 - /tmp/drone-cache:/tmp/cache
46 repo: friendica/friendica-addons
47 branch: [ develop, '*-rc' ]
50 image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
52 - export COMPOSER_HOME=.composer
54 - composer install --no-dev --optimize-autoloader
56 - /etc/hosts:/etc/hosts
58 repo: friendica/friendica-addons
59 branch: [ develop, '*-rc' ]
65 - apt-get install bzip2
67 - export VERSION="$(cat VERSION)"
68 - export RELEASE="friendica-addons-$VERSION"
69 - export ARTIFACT="$RELEASE.tar.gz"
73 --exclude='.editorconfig'
74 --exclude='.gitattributes'
75 --exclude='.gitignore'
76 --exclude='.woodpecker'
77 --exclude='**/*/messages.po'
78 -cvzf ./build/$ARTIFACT addon/
80 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
83 - cat "$ARTIFACT.sum256"
84 - sha256sum "$ARTIFACT"
86 repo: friendica/friendica-addons
87 branch: [ develop, '*-rc' ]
90 image: plugins/gpgsign
95 from_secret: gpg_password
102 repo: friendica/friendica-addons
103 branch: [ develop, '*-rc' ]
119 - /etc/hosts:/etc/hosts
121 - apk add lftp openssh openssl
123 - chmod 400 drone.key
124 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
127 set net:max-retries 2;
128 set net:reconnect-interval-base 5;
129 set sftp:auto-confirm true;
130 set sftp:connect-program 'ssh -q -a -x -i drone.key';
131 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
137 repo: friendica/friendica-addons
138 branch: [ develop, '*-rc' ]