Compare commits

...

3 Commits

Author SHA1 Message Date
waja
acc0a76eba
Merge 35725bd4eb89af3016cace57e7b3a8cbdc57e1bc into 35f8a4f1aec8f5d6102b10dfb40a017aee970c79 2024-04-09 16:18:26 +02:00
Jan Wagner
35f8a4f1ae chore: mark version 26 as EOL 2024-04-09 15:06:45 +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 3 deletions

View File

@ -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 }}

View File

@ -9,7 +9,7 @@ and will receive the minor version updates and security patches.
| ------- | ------------------ |
| 28. x | :white_check_mark: |
| 27. x | :white_check_mark: |
| 26. x | :white_check_mark: |
| 26. x | :negative_squared_cross_mark: |
| 25. x | :negative_squared_cross_mark: |
| 24. x | :negative_squared_cross_mark: |
| 23. x | :negative_squared_cross_mark: |