1
0
mirror of https://github.com/hoellen/docker-nextcloud.git synced 2025-08-11 19:52:35 +00:00

3 Commits

Author SHA1 Message Date
waja
5bb4d67f04 Merge 35725bd4eb into 34f40fe438 2024-04-09 14:55:26 +02:00
34f40fe438 fix: add missing librsvg
This was caused by the update to Alpine 3.19.
2024-04-09 14:47:04 +02:00
Jan Wagner
35725bd4eb Enhance branch workflow
Allow running CI pipelines on version-branches and still (only) tag latest on
master branch
2023-12-16 15:10:45 +01:00
2 changed files with 11 additions and 2 deletions
.github/workflows
Dockerfile

@@ -3,7 +3,9 @@ name: build
on:
workflow_dispatch:
push:
branches: [ master ]
branches:
- master
- version-*
schedule:
# Build the image regularly (each Friday)
- cron: '23 04 * * 5'
@@ -27,6 +29,12 @@ jobs:
- name: Extract version for tags
run: |
if [[ "$GITHUB_REF" == refs/heads/* ]]; then
BRANCH="${GITHUB_REF#refs/heads/}"
if [ "$BRANCH" = "master" ]; then
echo "BRANCH_VERSION=latest" >> $GITHUB_ENV
fi
fi
echo "FULL_VERSION=$(grep -oP '(?<=NEXTCLOUD_VERSION=).*' Dockerfile | head -c6)" >> $GITHUB_ENV
echo "MAJOR_VERSION=$(grep -oP '(?<=NEXTCLOUD_VERSION=).*' Dockerfile | head -c2)" >> $GITHUB_ENV
@@ -53,7 +61,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
latest
${{ env.BRANCH_VERSION }}
${{ env.FULL_VERSION }}
${{ env.MAJOR_VERSION }}

@@ -43,6 +43,7 @@ RUN apk -U upgrade \
gmp \
icu \
libjpeg-turbo \
librsvg \
libpq \
libpq \
libwebp \