diff options
| author | Anton Gerasimov <anton@advancedtelematic.com> | 2016-11-08 11:23:19 +0100 |
|---|---|---|
| committer | Anton Gerasimov <anton@advancedtelematic.com> | 2016-11-08 18:43:07 +0100 |
| commit | 937f38696039d236f813340115efac14e189672f (patch) | |
| tree | 43443ed9517a35151b9794fe8101a506d780b44a /classes | |
| parent | 34dc600256134efd8013e614105b0f4ca74c8e37 (diff) | |
| download | meta-updater-937f38696039d236f813340115efac14e189672f.tar.gz | |
A tool for uploading OSTree objects to a server together with
integration code
Bug-AGL: SPEC-194
Change-Id: I650e190bbda67ad48233bc5aedc0c10ff14aa58f
Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/image_types_ostree.bbclass | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index fcba6d9..453692e 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
| @@ -124,3 +124,22 @@ IMAGE_CMD_ostree () { | |||
| 124 | rm -rf ${OSTREE_ROOTFS} | 124 | rm -rf ${OSTREE_ROOTFS} |
| 125 | } | 125 | } |
| 126 | 126 | ||
| 127 | IMAGE_TYPEDEP_ostreepush = "ostree" | ||
| 128 | IMAGE_DEPENDS_ostreepush = "sota-tools-native:do_populate_sysroot" | ||
| 129 | IMAGE_CMD_ostreepush () { | ||
| 130 | if [ ${OSTREE_REMOTE_URL} ]; 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} \ | ||
| 140 | --ref=${OSTREE_BRANCHNAME} \ | ||
| 141 | --url=${OSTREE_REMOTE_URL} \ | ||
| 142 | --user=${OSTREE_REMOTE_USER} \ | ||
| 143 | --password=${OSTREE_REMOTE_PASSWORD} | ||
| 144 | fi | ||
| 145 | } | ||
