mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-12-22 10:54:23 +01:00
ci: add periodic pulling of all Docker image tags to avoid staleness
This commit is contained in:
parent
377a6ac179
commit
ff136f7b16
19
.github/workflows/dockerhub.yml
vendored
Normal file
19
.github/workflows/dockerhub.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
name: dockerhub
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '7 4 * * 4' # weekly on thursday morning
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pull-released-dockerimages:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Avoid stale tags by pulling
|
||||||
|
run: |
|
||||||
|
ALL_IMAGES="$(curl -s https://hub.docker.com/v2/repositories/cmur2/dyndnsd/tags?page_size=1000 | jq -r '.results[].name | "cmur2/dyndnsd:" + .' | grep -e 'cmur2/dyndnsd:v')"
|
||||||
|
for image in $ALL_IMAGES; do
|
||||||
|
echo "Pulling $image to avoid staleness..."
|
||||||
|
docker pull "$image"
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user