mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
updates: switch to updatectl 1.1.0, remove metadata option.
This commit is contained in:
parent
112b60690c
commit
2a7c3f31e6
@ -14,8 +14,6 @@ DEFINE_string board "amd64-usr" \
|
|||||||
"Board type of the image"
|
"Board type of the image"
|
||||||
DEFINE_string payload "coreos_production_update.gz" \
|
DEFINE_string payload "coreos_production_update.gz" \
|
||||||
"Path to the update payload"
|
"Path to the update payload"
|
||||||
DEFINE_string metadata "coreos_production_update.meta" \
|
|
||||||
"Path to the update metadata"
|
|
||||||
DEFINE_string version "${COREOS_VERSION_STRING}" \
|
DEFINE_string version "${COREOS_VERSION_STRING}" \
|
||||||
"Version number of this build."
|
"Version number of this build."
|
||||||
DEFINE_string app_id "e96281a6-d1af-4bde-9a0a-97b76e56dc57" \
|
DEFINE_string app_id "e96281a6-d1af-4bde-9a0a-97b76e56dc57" \
|
||||||
@ -53,13 +51,12 @@ GS_URL="${FLAGS_storage}/${FLAGS_board}/${FLAGS_version}/update.gz"
|
|||||||
HTTP_URL="https://commondatastorage.googleapis.com/${GS_URL#gs://}"
|
HTTP_URL="https://commondatastorage.googleapis.com/${GS_URL#gs://}"
|
||||||
gsutil cp "${FLAGS_payload}" "${GS_URL}"
|
gsutil cp "${FLAGS_payload}" "${GS_URL}"
|
||||||
|
|
||||||
rollerctl \
|
updatectl \
|
||||||
-s ${FLAGS_endpoint} \
|
--server="${FLAGS_endpoint}" \
|
||||||
-u ${FLAGS_user} \
|
--user="${FLAGS_user}" \
|
||||||
-k ${FLAGS_api_key} \
|
--key="${FLAGS_api_key}" \
|
||||||
new-package \
|
package create \
|
||||||
--url "${HTTP_URL}" \
|
--app-id="${FLAGS_app_id}" \
|
||||||
--file "${FLAGS_payload}" \
|
--file="${FLAGS_payload}" \
|
||||||
--meta "${FLAGS_metadata}" \
|
--url="${HTTP_URL}" \
|
||||||
--version "${FLAGS_version}" \
|
--version="${FLAGS_version}"
|
||||||
"${FLAGS_app_id}"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user