mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2025-04-19 20:19:24 +00:00
Compare commits
3 Commits
be35302f02
...
d3c19a637b
Author | SHA1 | Date | |
---|---|---|---|
|
d3c19a637b | ||
dec3a7f789 | |||
|
35725bd4eb |
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -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 }}
|
||||
|
||||
|
@ -17,7 +17,8 @@ fi
|
||||
|
||||
# Check if database is available
|
||||
if [ -n "${DB_TYPE}" ] && [ "${DB_TYPE}" != "sqlite3" ]; then
|
||||
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
|
||||
DB_PORT=${DB_PORT:-$( [ "${DB_TYPE}" = "pgsql" ] && echo 5432 || echo 3306 )}
|
||||
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT}"
|
||||
do
|
||||
echo "waiting for the database container..."
|
||||
sleep 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user