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
17 clone_friendica_addon:
20 - git config --global user.email "no-reply@friendi.ca"
21 - git config --global user.name "Friendica"
22 - git clone $CI_REPO_LINK addon
24 - git checkout $CI_COMMIT_BRANCH
25 - git fetch origin $CI_COMMIT_REF
26 - git merge $CI_COMMIT_SHA
28 repo: friendica/friendica-addons
31 image: meltwater/drone-cache:dev
35 cache_key: "{{ .Repo.Name }}_php7.4_{{ arch }}_{{ os }}"
36 archive_format: "gzip"
40 - /tmp/drone-cache:/tmp/cache
42 repo: friendica/friendica-addons
45 image: friendicaci/php7.4:php7.4.33
47 - export COMPOSER_HOME=.composer
49 - composer install --no-dev --optimize-autoloader
51 repo: friendica/friendica-addons
54 - /etc/hosts:/etc/hosts
59 - apt-get install bzip2
61 - export VERSION="$(cat VERSION)"
62 - export RELEASE="friendica-addons-$VERSION"
63 - export ARTIFACT="$RELEASE.tar.gz"
67 --exclude='.editorconfig'
68 --exclude='.gitattributes'
69 --exclude='.gitignore'
70 --exclude='.woodpecker'
71 --exclude='**/*/messages.po'
72 -cvzf ./build/$ARTIFACT addon/
74 - sha256sum "$ARTIFACT" > "$ARTIFACT.sum256"
77 - cat "$ARTIFACT.sum256"
78 - sha256sum "$ARTIFACT"
80 repo: friendica/friendica-addons
83 image: plugins/gpgsign
88 from_secret: gpg_password
95 repo: friendica/friendica-addons
100 - cp -fr build/* /tmp/friendica_files/
102 - files:/tmp/friendica_files
104 repo: friendica/friendica-addons