summaryrefslogtreecommitdiffstats
path: root/meta-sota/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta-sota/classes')
-rw-r--r--meta-sota/classes/image_types_ostree.bbclass14
1 files changed, 2 insertions, 12 deletions
diff --git a/meta-sota/classes/image_types_ostree.bbclass b/meta-sota/classes/image_types_ostree.bbclass
index 453692e..32ea98f 100644
--- a/meta-sota/classes/image_types_ostree.bbclass
+++ b/meta-sota/classes/image_types_ostree.bbclass
@@ -127,19 +127,9 @@ IMAGE_CMD_ostree () {
IMAGE_TYPEDEP_ostreepush = "ostree"
IMAGE_DEPENDS_ostreepush = "sota-tools-native:do_populate_sysroot"
IMAGE_CMD_ostreepush () {
- if [ ${OSTREE_REMOTE_URL} ]; then
- if [ -z ${OSTREE_REMOTE_USER} ]; then
- bberror "OSTREE_REMOTE_PASSWORD isn't set"
- fi
-
- if [ -z ${OSTREE_REMOTE_PASSWORD} ]; then
- bberror "OSTREE_REMOTE_PASSWORD isn't set"
- fi
-
+ if [ ${OSTREE_PUSH_CREDENTIALS} ]; then
garage-push --repo=${OSTREE_REPO} \
--ref=${OSTREE_BRANCHNAME} \
- --url=${OSTREE_REMOTE_URL} \
- --user=${OSTREE_REMOTE_USER} \
- --password=${OSTREE_REMOTE_PASSWORD}
+ --credentials=${OSTREE_PUSH_CREDENTIALS}
fi
}