diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_types_ostree.bbclass | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index 453692e..32ea98f 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
@@ -127,19 +127,9 @@ IMAGE_CMD_ostree () { | |||
127 | IMAGE_TYPEDEP_ostreepush = "ostree" | 127 | IMAGE_TYPEDEP_ostreepush = "ostree" |
128 | IMAGE_DEPENDS_ostreepush = "sota-tools-native:do_populate_sysroot" | 128 | IMAGE_DEPENDS_ostreepush = "sota-tools-native:do_populate_sysroot" |
129 | IMAGE_CMD_ostreepush () { | 129 | IMAGE_CMD_ostreepush () { |
130 | if [ ${OSTREE_REMOTE_URL} ]; then | 130 | if [ ${OSTREE_PUSH_CREDENTIALS} ]; then |
131 | if [ -z ${OSTREE_REMOTE_USER} ]; then | ||
132 | bberror "OSTREE_REMOTE_PASSWORD isn't set" | ||
133 | fi | ||
134 | |||
135 | if [ -z ${OSTREE_REMOTE_PASSWORD} ]; then | ||
136 | bberror "OSTREE_REMOTE_PASSWORD isn't set" | ||
137 | fi | ||
138 | |||
139 | garage-push --repo=${OSTREE_REPO} \ | 131 | garage-push --repo=${OSTREE_REPO} \ |
140 | --ref=${OSTREE_BRANCHNAME} \ | 132 | --ref=${OSTREE_BRANCHNAME} \ |
141 | --url=${OSTREE_REMOTE_URL} \ | 133 | --credentials=${OSTREE_PUSH_CREDENTIALS} |
142 | --user=${OSTREE_REMOTE_USER} \ | ||
143 | --password=${OSTREE_REMOTE_PASSWORD} | ||
144 | fi | 134 | fi |
145 | } | 135 | } |