|
32 | 32 | echo "**** External version: ${EXT_RELEASE} ****"
|
33 | 33 | echo "**** Retrieving last pushed version ****"
|
34 | 34 | image="linuxserver/code-server"
|
35 |
| - tag="latest" |
| 35 | + tag="focal" |
36 | 36 | token=$(curl -sX GET \
|
37 | 37 | "https://ghcr.io/token?scope=repository%3Alinuxserver%2Fcode-server%3Apull" \
|
38 | 38 | | jq -r '.token')
|
|
54 | 54 | IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
|
55 | 55 | if [ -z "${IMAGE_VERSION}" ]; then
|
56 | 56 | echo "**** Can't retrieve last pushed version, exiting ****"
|
57 |
| - FAILURE_REASON="Can't retrieve last pushed version for code-server tag latest" |
| 57 | + FAILURE_REASON="Can't retrieve last pushed version for code-server tag focal" |
58 | 58 | curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
|
59 | 59 | "description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
|
60 | 60 | "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
|
85 | 85 | --data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
86 | 86 | --data-urlencode "Submit=Submit"
|
87 | 87 | echo "**** Notifying Discord ****"
|
88 |
| - TRIGGER_REASON="A version change was detected for code-server tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}" |
| 88 | + TRIGGER_REASON="A version change was detected for code-server tag focal. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}" |
89 | 89 | curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
90 | 90 | "description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
|
91 | 91 | "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
|
0 commit comments