4 name: Check messages.po
14 - name: clone friendica base
17 - git clone https://github.com/friendica/friendica.git .
18 - git checkout $DRONE_COMMIT_BRANCH
19 - name: clone friendica addon
22 - git clone $DRONE_REPO_LINK addon
24 - git checkout $DRONE_COMMIT_BRANCH
25 - git fetch origin $DRONE_COMMIT_REF
26 - git merge $DRONE_COMMIT_SHA
27 - name: Run Xgettext for addons
28 image: friendicaci/transifex
31 - name: Check update necessary
32 image: friendicaci/transifex
48 - name: Clone friendica base
51 - git clone https://github.com/friendica/friendica.git .
52 - git checkout $DRONE_COMMIT_BRANCH
53 - name: Clone friendica addon
56 - git clone $DRONE_REPO_LINK addon
58 - git checkout $DRONE_COMMIT_BRANCH
59 - git fetch origin $DRONE_COMMIT_REF
60 - git merge $DRONE_COMMIT_SHA
61 - name: Install dependencies
64 - ./bin/composer.phar run cs:install
65 - name: Run coding standards check
66 image: friendicaci/php-cs
69 - export CHANGED_FILES="$(git diff --name-status ${DRONE_COMMIT_BEFORE}..${DRONE_COMMIT_AFTER} | grep ^A | cut -f2 | sed -e "s/^/addon\\//")"
75 name: continuous-deployment
79 - friendica/friendica-addons
87 node: releaser # This prevents executing this pipeline at other servers than drone.friendi.ca
93 - name: Clone friendica base
96 - git clone https://github.com/friendica/friendica.git .
97 - git checkout $DRONE_COMMIT_BRANCH
98 - name: Clone friendica addon
101 - git clone $DRONE_REPO_LINK addon
103 - git checkout $DRONE_COMMIT_BRANCH
104 - git fetch origin $DRONE_COMMIT_REF
105 - git merge $DRONE_COMMIT_SHA
106 - name: Create artifacts
110 - apt-get install bzip2
111 - export VERSION="$(cat VERSION)"
112 - export RELEASE="friendica-addons-$VERSION"
113 - export ARTIFACT="$RELEASE.tar.gz"
115 - # Create artifact for friendica-addons
119 --exclude='.editorconfig'
120 --exclude='.gitattributes'
121 --exclude='.gitignore'
122 --exclude='.drone.yml'
123 --exclude='**/*/messages.po'
124 -cvzf ./build/$ARTIFACT addon/
125 - # calculate SHA256 checksum
127 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
130 - # output the sha256 sum for checking
131 - cat "$ARTIFACT.sum256"
132 - sha256sum "$ARTIFACT"
133 - name: Sign artifacts
134 image: plugins/gpgsign
139 from_secret: gpg_password
145 - name: Upload artifacts
149 from_secret: sftp_host
151 from_secret: sftp_user
158 - apk add lftp openssh openssl
160 - chmod 400 drone.key
161 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
164 set net:max-retries 2;
165 set net:reconnect-interval-base 5;
166 set sftp:auto-confirm true;
167 set sftp:connect-program 'ssh -q -a -x -i drone.key';
168 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
177 path: /tmp/drone-cache
181 name: release-deployment
185 - friendica/friendica-addons
192 node: releaser # This prevents executing this pipeline at other servers than drone.friendi.ca
198 - name: Clone friendica base
201 - git clone https://github.com/friendica/friendica.git .
202 - git checkout $DRONE_COMMIT_BRANCH
203 - name: Clone friendica addon
206 - git clone $DRONE_REPO_LINK addon
208 - git checkout $DRONE_COMMIT_BRANCH
209 - git fetch origin $DRONE_COMMIT_REF
210 - git merge $DRONE_COMMIT_SHA
211 - name: Create artifacts
215 - apt-get install bzip2
216 - export VERSION="$(cat VERSION)"
217 - export RELEASE="friendica-addons-$VERSION"
218 - export ARTIFACT="$RELEASE.tar.gz"
220 - # Create artifact for friendica-addons
224 --exclude='.editorconfig'
225 --exclude='.gitattributes'
226 --exclude='.gitignore'
227 --exclude='.drone.yml'
228 --exclude='**/*/messages.po'
229 -cvzf ./build/$ARTIFACT addon/
230 - # calculate SHA256 checksum
232 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
235 - # output the sha256 sum for checking
236 - cat "$ARTIFACT.sum256"
237 - sha256sum "$ARTIFACT"
238 - name: Sign artifacts
239 image: plugins/gpgsign
244 from_secret: gpg_password
250 - name: Upload artifacts
254 from_secret: sftp_host
256 from_secret: sftp_user
263 - apk add lftp openssh openssl
265 - chmod 400 drone.key
266 - echo "$LFTP_KEY" | openssl base64 -A -d > drone.key
269 set net:max-retries 2;
270 set net:reconnect-interval-base 5;
271 set sftp:auto-confirm true;
272 set sftp:connect-program 'ssh -q -a -x -i drone.key';
273 connect sftp://$LFTP_USER:@$LFTP_HOST:$LFTP_PORT;
282 path: /tmp/drone-cache