Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
f24a0a59e4 | |||
b4ae3d6fb3 | |||
33ef624142 | |||
36d1f4febd | |||
4229688d65 | |||
0d81023a5c | |||
01b9a81305 | |||
db1f4b7977 |
3 changed files with 48 additions and 41 deletions
|
@ -2,44 +2,45 @@ when:
|
|||
- event: [push, manual]
|
||||
matrix:
|
||||
NEXTCLOUD_VERSION:
|
||||
- 28
|
||||
- 30
|
||||
- 29
|
||||
- 28
|
||||
steps:
|
||||
- name: patch
|
||||
image: debian
|
||||
commands:
|
||||
- "./patch-nextcloud.sh"
|
||||
environment:
|
||||
NEXTCLOUD_VERSION: ${NEXTCLOUD_VERSION}
|
||||
- name: docker
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
registry: git.ar21.de
|
||||
username:
|
||||
from_secret: REGISTRY_USER
|
||||
password:
|
||||
from_secret: REGISTRY_PASS
|
||||
repo: git.ar21.de/aaron/nextcloud-fpm
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
when:
|
||||
- branch: main
|
||||
- name: docker-build
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
registry: git.ar21.de
|
||||
username:
|
||||
from_secret: REGISTRY_USER
|
||||
password:
|
||||
from_secret: REGISTRY_PASS
|
||||
repo: git.ar21.de/aaron/nextcloud-fpm
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
dry_run: true
|
||||
when:
|
||||
- branch:
|
||||
exclude: main
|
||||
- name: patch
|
||||
image: debian
|
||||
commands:
|
||||
- "./patch-nextcloud.sh"
|
||||
environment:
|
||||
NEXTCLOUD_VERSION: ${NEXTCLOUD_VERSION}
|
||||
- name: docker
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
registry: git.ar21.de
|
||||
username:
|
||||
from_secret: REGISTRY_USER
|
||||
password:
|
||||
from_secret: REGISTRY_PASS
|
||||
repo: git.ar21.de/aaron/nextcloud-fpm
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
when:
|
||||
- branch: main
|
||||
- name: docker-build
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
registry: git.ar21.de
|
||||
username:
|
||||
from_secret: REGISTRY_USER
|
||||
password:
|
||||
from_secret: REGISTRY_PASS
|
||||
repo: git.ar21.de/aaron/nextcloud-fpm
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
dry_run: true
|
||||
when:
|
||||
- branch:
|
||||
exclude: main
|
||||
|
|
|
@ -5,11 +5,14 @@ echo "==> install git"
|
|||
apt-get update -q && apt-get install -q -y git && rm -rf /var/lib/apt/lists
|
||||
echo "==> clone nextcloud/docker"
|
||||
git clone https://git.ar21.de/aaron/nextcloud-docker.git
|
||||
# save current workdir
|
||||
WORKDIR=$(pwd)
|
||||
echo "==> patch the Dockerfile"
|
||||
cd "nextcloud-docker/$NEXTCLOUD_VERSION/fpm/"
|
||||
sed -i "$(awk '/^ENTRYPOINT /{line=NR} END{print line}' Dockerfile)s+^+# begin of patch\nRUN apt-get update\nRUN apt-get install -y libmagickcore-6.q16-6-extra tesseract-ocr tesseract-ocr-deu tesseract-ocr-eng ocrmypdf libbz2-dev\nRUN docker-php-ext-install bz2\nRUN apt-get clean autoclean\nRUN apt-get autoremove -y\nADD https://raw.githubusercontent.com/tesseract-ocr/tessdata/main/deu.traineddata /usr/share/tesseract-ocr/tessdata/\nADD https://raw.githubusercontent.com/tesseract-ocr/tessdata/main/eng.traineddata /usr/share/tesseract-ocr/tessdata/\n# end of patch\n+" Dockerfile
|
||||
echo "==> determine tags"
|
||||
full_version=$(grep -oP '(?<=^ENV NEXTCLOUD_VERSION ).*' Dockerfile)
|
||||
echo "==> found $full_version"
|
||||
echo "$full_version" > .tags
|
||||
cp nextcloud-docker/$NEXTCLOUD_VERSION/fpm/* .
|
||||
cd $WORKDIR
|
||||
cp -r nextcloud-docker/$NEXTCLOUD_VERSION/fpm/* .
|
||||
echo "$full_version, $NEXTCLOUD_VERSION" > .tags
|
3
versions.txt
Normal file
3
versions.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
30.0.2
|
||||
29.0.9
|
||||
28.0.12
|
Loading…
Reference in a new issue