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 "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

View file

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