mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-03 11:32:02 +02:00
.github: fix mantle URL for downloading cork
The repo `github.com/flatcar-linux/mantle` has been moved to `github.com/kinvolk/mantle`. However, Github Actions still fetch cork binaries from the original URL, by running `curl` without `-L`. So the request does not get redirected to the new URL. As a result, `CORK_VERSION` becomes null. Fix it by replacing `flatcar-linux` with `kinvolk`, as well as adding `-L` to the curl command, just in case.
This commit is contained in:
parent
da29970ce8
commit
b561d71285
@ -2,9 +2,9 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
CORK_VERSION=$(curl -s https://api.github.com/repos/flatcar-linux/mantle/releases/latest | jq -r .tag_name | sed -e 's/^v//')
|
||||
curl -L -o cork https://github.com/flatcar-linux/mantle/releases/download/v"${CORK_VERSION}"/cork-"${CORK_VERSION}"-amd64
|
||||
curl -L -o cork.sig https://github.com/flatcar-linux/mantle/releases/download/v"${CORK_VERSION}"/cork-"${CORK_VERSION}"-amd64.sig
|
||||
CORK_VERSION=$(curl -sL https://api.github.com/repos/kinvolk/mantle/releases/latest | jq -r .tag_name | sed -e 's/^v//')
|
||||
curl -L -o cork https://github.com/kinvolk/mantle/releases/download/v"${CORK_VERSION}"/cork-"${CORK_VERSION}"-amd64
|
||||
curl -L -o cork.sig https://github.com/kinvolk/mantle/releases/download/v"${CORK_VERSION}"/cork-"${CORK_VERSION}"-amd64.sig
|
||||
curl -LO https://www.flatcar-linux.org/security/image-signing-key/Flatcar_Image_Signing_Key.asc
|
||||
gpg --import Flatcar_Image_Signing_Key.asc
|
||||
gpg --verify cork.sig cork
|
||||
|
Loading…
x
Reference in New Issue
Block a user