Compare commits

..

1 commit
main ... new-ci

Author SHA1 Message Date
2e66cc4fd0
fix workdir
Some checks failed
ci/woodpecker/push/woodpecker/2 Pipeline failed
ci/woodpecker/push/woodpecker/1 Pipeline failed
2024-09-24 22:55:25 +02:00
3 changed files with 41 additions and 45 deletions

View file

@ -2,45 +2,44 @@ when:
- event: [push, manual] - event: [push, manual]
matrix: matrix:
NEXTCLOUD_VERSION: NEXTCLOUD_VERSION:
- 30
- 29
- 28 - 28
- 29
steps: steps:
- name: patch - name: patch
image: debian image: debian
commands: commands:
- "./patch-nextcloud.sh" - "./patch-nextcloud.sh"
environment: environment:
NEXTCLOUD_VERSION: ${NEXTCLOUD_VERSION} NEXTCLOUD_VERSION: ${NEXTCLOUD_VERSION}
- name: docker - name: docker
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
privileged: true privileged: true
settings: settings:
registry: git.ar21.de registry: git.ar21.de
username: username:
from_secret: REGISTRY_USER from_secret: REGISTRY_USER
password: password:
from_secret: REGISTRY_PASS from_secret: REGISTRY_PASS
repo: git.ar21.de/aaron/nextcloud-fpm repo: git.ar21.de/aaron/nextcloud-fpm
platforms: platforms:
- linux/arm64 - linux/arm64
- linux/amd64 - linux/amd64
when: when:
- branch: main - branch: main
- name: docker-build - name: docker-build
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
privileged: true privileged: true
settings: settings:
registry: git.ar21.de registry: git.ar21.de
username: username:
from_secret: REGISTRY_USER from_secret: REGISTRY_USER
password: password:
from_secret: REGISTRY_PASS from_secret: REGISTRY_PASS
repo: git.ar21.de/aaron/nextcloud-fpm repo: git.ar21.de/aaron/nextcloud-fpm
platforms: platforms:
- linux/arm64 - linux/arm64
- linux/amd64 - linux/amd64
dry_run: true dry_run: true
when: when:
- branch: - branch:
exclude: main exclude: main

View file

@ -13,6 +13,6 @@ sed -i "$(awk '/^ENTRYPOINT /{line=NR} END{print line}' Dockerfile)s+^+# begin o
echo "==> determine tags" echo "==> determine tags"
full_version=$(grep -oP '(?<=^ENV NEXTCLOUD_VERSION ).*' Dockerfile) full_version=$(grep -oP '(?<=^ENV NEXTCLOUD_VERSION ).*' Dockerfile)
echo "==> found $full_version" echo "==> found $full_version"
echo "$full_version" > .tags
cd $WORKDIR cd $WORKDIR
cp -r nextcloud-docker/$NEXTCLOUD_VERSION/fpm/* . cp nextcloud-docker/$NEXTCLOUD_VERSION/fpm/* .
echo "$full_version" > .tags

View file

@ -1,3 +0,0 @@
30.0.0
29.0.7
28.0.10