From 37c52c6887d818ab7dfd3724cdbfa70a9b79503a Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Sun, 28 Apr 2024 04:10:19 +0200 Subject: [PATCH] feat: Update images weekly to receive apt update Receive updates from apt so that there is no need to rebuild the image to receive security updates. Better safe than sorry. --- .gitea/workflows/build_latest.yml | 8 ++++---- .gitea/workflows/build_stable.yml | 8 ++++---- README.md | 12 ++++++++++++ 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build_latest.yml b/.gitea/workflows/build_latest.yml index ac6d4a0..8e0d7be 100644 --- a/.gitea/workflows/build_latest.yml +++ b/.gitea/workflows/build_latest.yml @@ -19,10 +19,10 @@ jobs: echo "Latest version: $VERSION" echo "version=${VERSION}" >> $GITHUB_OUTPUT shell: bash - - name: Check if the image was already built - id: check-build-status - run: | - if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/nextcloud-extended/tags/$(echo ${{steps.extract-version.outputs.version}})" 2> /dev/null; then echo "Built already!" && exit 1; else echo "This version isn't built yet."; fi + # - name: Check if the image was already built + # id: check-build-status + # run: | + # if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/nextcloud-extended/tags/$(echo ${{steps.extract-version.outputs.version}})" 2> /dev/null; then echo "Built already!" && exit 1; else echo "This version isn't built yet."; fi - name: Update repositories run: sudo apt update diff --git a/.gitea/workflows/build_stable.yml b/.gitea/workflows/build_stable.yml index 806d289..4befa62 100644 --- a/.gitea/workflows/build_stable.yml +++ b/.gitea/workflows/build_stable.yml @@ -22,10 +22,10 @@ jobs: echo "version=${VERSION}" >> $GITHUB_OUTPUT echo "version-major=${VERSION_MAJOR}" >> $GITHUB_OUTPUT shell: bash - - name: Check if the image was already built - id: check-build-status - run: | - if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/nextcloud-extended/tags/$(echo ${{steps.extract-version.outputs.version}})" 2> /dev/null; then echo "Built already!" && exit 1; else echo "This version isn't built yet."; fi + # - name: Check if the image was already built + # id: check-build-status + # run: | + # if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/nextcloud-extended/tags/$(echo ${{steps.extract-version.outputs.version}})" 2> /dev/null; then echo "Built already!" && exit 1; else echo "This version isn't built yet."; fi - name: Update repositories run: sudo apt update diff --git a/README.md b/README.md index c0c923e..d520b75 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,18 @@ Nextcloud's docker image with extra utilities +> [!Note] +> The images with tags `latest` and `stable` are being rebuilt every week even if +> there isn't a Nextcloud update to get security updates form `apt`. + +> [!Important] +> I do not recommend automatically pulling the `latest` and `stable` tags as they track +> upstream image and they can update you to the next major version without you intending to do so. +> +> If you'd like to receive the weekly updates tag your images with the major version like +> `jiriks74/nextcloud-extended:28`. Keep in mind that these version tags are not automatically +> updated when new major version is out for the `stable` tag upstream. + ## This image is availabe on [DockerHub](https://hub.docker.com/repository/docker/jiriks74/nextcloud-extended/general) ## Utilities added