Skip to content

Commit

Permalink
ci: add smoke-testing tasks
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Suraci <asuraci@vmware.com>
Co-authored-by: Bishoy Youssef <byoussef@vmware.com>
  • Loading branch information
vito and YoussB committed Jul 2, 2020
1 parent dd39c7f commit a8be31e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ci/build-smoke-test-image.yml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions ci/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a8be31e

Please sign in to comment.