From 4c0f59c11976b7e2379331fd330ac250c944ebcb Mon Sep 17 00:00:00 2001 From: Tobias K <6317548+theCalcaholic@users.noreply.github.com> Date: Thu, 27 Apr 2023 02:28:31 +0200 Subject: [PATCH 1/2] release.yml: Allow tags with docker-* prefix for releases Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3eaac3588..f51db60c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -333,7 +333,7 @@ jobs: docker tag "thecalcaholic/ncp-internal-${arch}:${{ github.run_id }}" "ownyourbits/nextcloudpi-${arch}:${version?}" docker tag "ownyourbits/nextcloudpi-${arch}:${version?}" "ownyourbits/nextcloudpi-${arch}:latest" docker push "ownyourbits/nextcloudpi-${arch}:${version?}" - [[ "$version" =~ ^v[0-9]+'.'[0-9]+'.'[0-9]+$ ]] && docker push "ownyourbits/nextcloudpi-${arch}:latest" + [[ "$version" =~ ^(docker-)?v[0-9]+'.'[0-9]+'.'[0-9]+$ ]] && docker push "ownyourbits/nextcloudpi-${arch}:latest" done docker manifest create ownyourbits/nextcloudpi:${version?} \ @@ -344,7 +344,7 @@ jobs: - name: Create manifest and push as latest to docker hub run: | - [[ "${{ github.ref }}" =~ ^'refs/tags/v'[0-9]+'.'[0-9]+'.'[0-9]+$ ]] || { + [[ "${{ github.ref }}" =~ ^'refs/tags/'(docker-)?'v'[0-9]+'.'[0-9]+'.'[0-9]+$ ]] || { echo "not tagging latest - is a pre-/beta-release" exit 0 } From c5698e1d8e7b8057d64dcec4d0e6c0a166595b51 Mon Sep 17 00:00:00 2001 From: Tobias K <6317548+theCalcaholic@users.noreply.github.com> Date: Thu, 27 Apr 2023 02:43:38 +0200 Subject: [PATCH 2/2] run-parts.sh: Fix order of parameters to notify_admin Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> --- build/docker/debian-ncp/run-parts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/docker/debian-ncp/run-parts.sh b/build/docker/debian-ncp/run-parts.sh index 35b545cfd..75e5e4b45 100755 --- a/build/docker/debian-ncp/run-parts.sh +++ b/build/docker/debian-ncp/run-parts.sh @@ -87,7 +87,7 @@ fi echo "Init done" [[ -f /data/docker_discontinuation_alert_sent ]] || \ - ( . /usr/local/etc/library.sh; notify_admin "$DOCKER_DISCONTINUATION_ALERT" && touch /data/docker_discontinuation_alert_sent ) + ( . /usr/local/etc/library.sh; notify_admin "ATTENTION: NCP docker support to be discontinued" "$DOCKER_DISCONTINUATION_ALERT" && touch /data/docker_discontinuation_alert_sent ) while true; do sleep 0.5; done