1 # This prevents executing this pipeline at other servers than ci.friendi.ca
12 - git clone https://github.com/friendica/friendica.git .
13 - git checkout $CI_COMMIT_BRANCH
15 repo: friendica/friendica-addons
16 branch: [ develop, '*-rc' ]
18 clone_friendica_addon:
21 - git config --global user.email "no-reply@friendi.ca"
22 - git config --global user.name "Friendica"
23 - git clone $CI_REPO_LINK addon
25 - git checkout $CI_COMMIT_BRANCH
26 - git fetch origin $CI_COMMIT_REF
27 - git merge $CI_COMMIT_SHA
29 repo: friendica/friendica-addons
30 branch: [ develop, '*-rc' ]
33 image: meltwater/drone-cache:dev
37 cache_key: "{{ .Repo.Name }}_php7.4_{{ arch }}_{{ os }}"
38 archive_format: "gzip"
42 - /tmp/drone-cache:/tmp/cache
44 repo: friendica/friendica-addons
45 branch: [ develop, '*-rc' ]
48 image: friendicaci/php7.4:php7.4.18
50 - export COMPOSER_HOME=.composer
52 - composer install --no-dev --optimize-autoloader
54 - /etc/hosts:/etc/hosts
56 repo: friendica/friendica-addons
57 branch: [ develop, '*-rc' ]
63 - apt-get install bzip2
65 - export VERSION="$(cat VERSION)"
66 - export RELEASE="friendica-addons-$VERSION"
67 - export ARTIFACT="$RELEASE.tar.gz"
71 --exclude='.editorconfig'
72 --exclude='.gitattributes'
73 --exclude='.gitignore'
74 --exclude='.woodpecker'
75 --exclude='**/*/messages.po'
76 -cvzf ./build/$ARTIFACT addon/
78 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
81 - cat "$ARTIFACT.sum256"
82 - sha256sum "$ARTIFACT"
84 repo: friendica/friendica-addons
85 branch: [ develop, '*-rc' ]
88 image: plugins/gpgsign
93 from_secret: gpg_password
100 repo: friendica/friendica-addons
101 branch: [ develop, '*-rc' ]
117 - /etc/hosts:/etc/hosts
119 - apk add lftp openssh openssl
121 - chmod 400 drone.key
122 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
125 set net:max-retries 2;
126 set net:reconnect-interval-base 5;
127 set sftp:auto-confirm true;
128 set sftp:connect-program 'ssh -q -a -x -i drone.key';
129 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
135 repo: friendica/friendica-addons
136 branch: [ develop, '*-rc' ]