summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorXuan Jia <jason.jiaxuan@gmail.com>2017-12-22 01:44:11 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-22 01:44:11 +0000
commitc7dbc67c97d227763943e6f1b8fbf063c6775ad8 (patch)
treee6b7444ba94a48b4ec15dfbdece5d88c14e262ca /ci
parent09c951502f43c477d48903bc335905b2d5287295 (diff)
parent790f1cd5203723400576fafbfd8519c83a010351 (diff)
Merge "Upload docker images for container4nfv"
Diffstat (limited to 'ci')
-rwxr-xr-xci/upload.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/ci/upload.sh b/ci/upload.sh
index 957b034..a586610 100755
--- a/ci/upload.sh
+++ b/ci/upload.sh
@@ -16,5 +16,14 @@
#
set -ex
-echo dummy > dummy
-gsutil cp dummy gs://$GS_URL/dummy
+# Build the images
+docker build -t container4nfv/ping ../src/vnf/ping/.
+docker build -t container4nfv/virtio-user-ping ../src/vnf/virtio-user-ping/.
+
+# Save the images
+docker save --output container4nfv-ping.tar container4nfv/ping
+docker save --output container4nfv-virtio-user-ping.tar container4nfv/virtio-user-ping
+
+# Upload both .tar to artifacts
+gsutil cp container4nfv-ping.tar gs://$GS_URL/container4nfv-ping.tar
+gsutil cp container4nfv-virtio-user-ping.tar gs://$GS_URL/container4nfv-virtio-user-ping.tar