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.
This commit is contained in:
parent
d02997b086
commit
37c52c6887
3 changed files with 20 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue