feat: Update images weekly to receive apt update
Some checks are pending
Build / build-stable (push) Successful in 14m48s
Build / build-latest (push) Waiting to run

Receive updates from apt so that there is no need to rebuild the image
to receive security updates.

Better safe than sorry.
This commit is contained in:
Jiří Štefka 2024-04-28 04:10:19 +02:00
parent d02997b086
commit 37c52c6887
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
3 changed files with 20 additions and 8 deletions

View file

@ -19,10 +19,10 @@ jobs:
echo "Latest version: $VERSION" echo "Latest version: $VERSION"
echo "version=${VERSION}" >> $GITHUB_OUTPUT echo "version=${VERSION}" >> $GITHUB_OUTPUT
shell: bash shell: bash
- name: Check if the image was already built # - name: Check if the image was already built
id: check-build-status # id: check-build-status
run: | # 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 # 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 - name: Update repositories
run: sudo apt update run: sudo apt update

View file

@ -22,10 +22,10 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "version-major=${VERSION_MAJOR}" >> $GITHUB_OUTPUT echo "version-major=${VERSION_MAJOR}" >> $GITHUB_OUTPUT
shell: bash shell: bash
- name: Check if the image was already built # - name: Check if the image was already built
id: check-build-status # id: check-build-status
run: | # 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 # 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 - name: Update repositories
run: sudo apt update run: sudo apt update

View file

@ -10,6 +10,18 @@
Nextcloud's docker image with extra utilities 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) ## This image is availabe on [DockerHub](https://hub.docker.com/repository/docker/jiriks74/nextcloud-extended/general)
## Utilities added ## Utilities added