update deps

This commit is contained in:
nyyu 2023-04-02 08:07:29 +02:00
parent ec65c7876d
commit 7de2e56fd9
2 changed files with 5 additions and 4 deletions

View File

@ -8,7 +8,7 @@ networks:
services:
grafana:
image: grafana/grafana:9.4.3
image: grafana/grafana:9.4.7
container_name: grafana
restart: unless-stopped
volumes:
@ -28,7 +28,7 @@ services:
- "traefik.http.routers.grafana.rule=Host(`grafana.${HOST_SUFFIX}`)"
- "traefik.http.routers.grafana.entrypoints=web"
prometheus:
image: prom/prometheus:v2.42.0
image: prom/prometheus:v2.43.0-stringlabels
container_name: prometheus
restart: unless-stopped
volumes:

5
update.sh Normal file → Executable file
View File

@ -3,8 +3,9 @@ images=$(grep 'image:' docker-compose.yml | grep -v '#' | sed 's/^ *//' | cut -d
for image in $images
do
if [[ $image != gcr* ]]; then
ver=$(curl -s https://registry.hub.docker.com/v2/repositories/${image}/tags | jq -r '[.results[] | select(.name | contains("ubuntu") | not) | select(.name | contains("main") | not ) | select(.name | contains("master") | not ) | select(.name | contains("latest") | not) | select(.name | contains("rc") | not)] | sort_by(.name) | reverse | first | .name')
ver=$(curl -s https://registry.hub.docker.com/v2/repositories/${image}/tags | jq -r '[.results[] | select(.name | contains("ubuntu") | not) | select(.name | contains("main") | not ) | select(.name | contains("master") | not ) | select(.name | contains("latest") | not) | select(.name | contains("rc") | not) | select(.name | contains("."))] | sort_by(.name) | reverse | first | .name')
echo "$image:$ver"
sed -i 's/image: $image:.*/image: $image:$ver/' docker-compose.yml
sed -i "s#image: $image:.*#image: $image:$ver#" docker-compose.yml
fi
done
git --no-pager diff