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.33
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' ]
106 - cp -fr build/* /tmp/friendica_files/
108 - files:/tmp/friendica_files
110 repo: friendica/friendica-addons
111 branch: [ develop, '*-rc' ]