3 - PHP_MAJOR_VERSION: 7.4
6 # This prevents executing this pipeline at other servers than ci.friendi.ca
17 - git clone https://github.com/friendica/friendica.git .
18 - git checkout $CI_COMMIT_BRANCH
20 repo: friendica/friendica-addons
21 branch: [ develop, '*-rc' ]
23 clone_friendica_addon:
26 - git config --global user.email "no-reply@friendi.ca"
27 - git config --global user.name "Friendica"
28 - git clone $CI_REPO_LINK addon
30 - git checkout $CI_COMMIT_BRANCH
31 - git fetch origin $CI_COMMIT_REF
32 - git merge $CI_COMMIT_SHA
34 repo: friendica/friendica-addons
35 branch: [ develop, '*-rc' ]
38 image: meltwater/drone-cache:dev
42 cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
43 archive_format: "gzip"
47 - /tmp/drone-cache:/tmp/cache
49 repo: friendica/friendica-addons
50 branch: [ develop, '*-rc' ]
53 image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
55 - export COMPOSER_HOME=.composer
57 - composer install --no-dev --optimize-autoloader
59 - /etc/hosts:/etc/hosts
61 repo: friendica/friendica-addons
62 branch: [ develop, '*-rc' ]
68 - apt-get install bzip2
70 - export VERSION="$(cat VERSION)"
71 - export RELEASE="friendica-addons-$VERSION"
72 - export ARTIFACT="$RELEASE.tar.gz"
76 --exclude='.editorconfig'
77 --exclude='.gitattributes'
78 --exclude='.gitignore'
79 --exclude='.woodpecker'
80 --exclude='**/*/messages.po'
81 -cvzf ./build/$ARTIFACT addon/
83 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
86 - cat "$ARTIFACT.sum256"
87 - sha256sum "$ARTIFACT"
89 repo: friendica/friendica-addons
90 branch: [ develop, '*-rc' ]
93 image: plugins/gpgsign
98 from_secret: gpg_password
105 repo: friendica/friendica-addons
106 branch: [ develop, '*-rc' ]
122 - /etc/hosts:/etc/hosts
124 - apk add lftp openssh openssl
126 - chmod 400 drone.key
127 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
130 set net:max-retries 2;
131 set net:reconnect-interval-base 5;
132 set sftp:auto-confirm true;
133 set sftp:connect-program 'ssh -q -a -x -i drone.key';
134 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
140 repo: friendica/friendica-addons
141 branch: [ develop, '*-rc' ]