.gitea/workflows/release.yml aktualisiert
This commit is contained in:
parent
470a5a0c5a
commit
399a0536fa
@ -15,11 +15,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
export NEWEST_HUGO_RELEASE=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases | jq -r '.[0].name' | sed '/s/v//g')
|
export NEWEST_HUGO_RELEASE=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases | jq -r '.[0].name' | sed '/s/v//g')
|
||||||
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 ]; do curl -O https://github.com/gohugoio/hugo/releases/download/v0.121.1/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; done
|
if [ $NEWEST_HUGO_RELEASE != $CURRENT_HUGO_RELEASE ]; do curl -O https://github.com/gohugoio/hugo/releases/download/v0.121.1/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; done
|
||||||
|
|
||||||
- name: notification
|
|
||||||
uses: actions/telegram-action@main
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
chat_id: ${{ secrets.TG_CHAT_ID }}
|
|
||||||
token: ${{ secrets.TG_TOKEN }}
|
|
Loading…
x
Reference in New Issue
Block a user