File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8080 id : buildx
8181 uses : docker/setup-buildx-action@v3.0.0
8282
83- - name : Login to Docker Hub
83+ - name : Login to GHCR
8484 uses : docker/login-action@v3
8585 with :
8686 registry : ${{ env.REGISTRY }}
9191 if : ${{ env.BORGMATIC_IMAGE_VERSION == 'latest' }}
9292 id : borgmatic-version
9393 run : |
94- LATEST_VERSION=$(curl -s https://api.github.com/repos /borgmatic-collective/borgmatic/tags | jq -r '.[].name' | grep -E ' ^[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -n 1 )
94+ LATEST_VERSION=$(curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" - s https://api.github.com/orgs /borgmatic-collective/packages/container/ borgmatic/versions | jq -r '[ .[] | .metadata.container.tags[]? | select(test(" ^[0-9]+\\ .[0-9]+\\ .[0-9]+$"))] | unique | sort_by(split(".") | map(tonumber)) | last' )
9595 echo "BORGMATIC_IMAGE_VERSION=$LATEST_VERSION" >> $GITHUB_ENV
9696
9797 # https://github.com/marketplace/actions/docker-metadata-action
Original file line number Diff line number Diff line change 22
33![ Super-Linter] ( https://github.com/maxim-mityutko/borgmatic-exporter/actions/workflows/build.yml/badge.svg )
44![ GitHub last commit (branch)] ( https://img.shields.io/github/last-commit/maxim-mityutko/borgmatic-exporter/master )
5- ![ Static Badge] ( https://img.shields.io/badge/Borgmatic%20Image-v2.0.7 -green )
5+ ![ Static Badge] ( https://img.shields.io/badge/Borgmatic%20Image-v2.0.12 -green )
66
77** Borgmatic Exporter** seamlessly integrates Prometheus metrics and Borgmatic. This project is based on
88the [ borg-exporter] ( https://github.com/danihodovic/borg-exporter ) by [ @danihodovic ] ( https://github.com/danihodovic ) ,
You can’t perform that action at this time.
0 commit comments