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