From a8be31e9f597500657db1b773e178ad8a23eb602 Mon Sep 17 00:00:00 2001 From: Alex Suraci Date: Thu, 2 Jul 2020 14:56:45 -0400 Subject: [PATCH] ci: add smoke-testing tasks Signed-off-by: Alex Suraci Co-authored-by: Bishoy Youssef --- ci/build-smoke-test-image.yml | 21 +++++++++++++++++++++ ci/smoke-test.yml | 25 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 ci/build-smoke-test-image.yml create mode 100644 ci/smoke-test.yml diff --git a/ci/build-smoke-test-image.yml b/ci/build-smoke-test-image.yml new file mode 100644 index 00000000..7bc7db46 --- /dev/null +++ b/ci/build-smoke-test-image.yml @@ -0,0 +1,21 @@ +--- +platform: linux + +image_resource: + type: registry-image + source: + repository: vito/oci-build-task + +inputs: +- name: docker-image-resource + path: . + +outputs: +- name: image + +params: + DOCKERFILE: ~ + UNPACK_ROOTFS: 'true' + +run: + path: build \ No newline at end of file diff --git a/ci/smoke-test.yml b/ci/smoke-test.yml new file mode 100644 index 00000000..57012a73 --- /dev/null +++ b/ci/smoke-test.yml @@ -0,0 +1,25 @@ +--- +platform: linux + +image_resource: + type: registry-image + source: + repository: concourse/docker-image-resource + +params: + REPOSITORY: ~ + +outputs: +- name: fetched-image + +run: + path: /bin/bash + args: + - -exc + - | + pushd fetched-image + jq -n '{source: {repository: $repo}}' --arg repo $REPOSITORY | \ + /opt/resource/check | \ + jq '{source: {repository: $repo}, version: last}' --arg repo $REPOSITORY | \ + /opt/resource/in . + popd \ No newline at end of file