0
0

.gitea/workflows/release.yml aktualisiert
All checks were successful
release / release (push) Successful in 2s

This commit is contained in:
Denys Konovalov 2023-12-19 11:33:38 +01:00
parent 354bd134a3
commit 4e11c5311e

@ -17,7 +17,6 @@ jobs:
export CURRENT_HUGO_RELEASE=$(curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} https://git.cantorgymnasium.de/api/v1/packages/gcg | jq -r 'map(select( .name | contains("hugo"))) | .[0].version') export CURRENT_HUGO_RELEASE=$(curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} https://git.cantorgymnasium.de/api/v1/packages/gcg | jq -r 'map(select( .name | contains("hugo"))) | .[0].version')
if [ $NEWEST_HUGO_RELEASE != $CURRENT_HUGO_RELEASE ] if [ $NEWEST_HUGO_RELEASE != $CURRENT_HUGO_RELEASE ]
then then
curl -O https://github.com/gohugoio/hugo/releases/download/v$(echo $NEWEST_HUGO_RELEASE)/hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb curl https://github.com/gohugoio/hugo/releases/download/v$(echo $NEWEST_HUGO_RELEASE)/hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb --output hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb
cat hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb
curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} --upload-file hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb https://git.cantorgymnasium.de/api/packages/gcg/debian/pool/all/main/upload curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} --upload-file hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb https://git.cantorgymnasium.de/api/packages/gcg/debian/pool/all/main/upload
fi fi