Skip to content

Commit a8be31e

Browse files
vitoYoussB
andcommitted
ci: add smoke-testing tasks
Signed-off-by: Alex Suraci <asuraci@vmware.com> Co-authored-by: Bishoy Youssef <byoussef@vmware.com>
1 parent dd39c7f commit a8be31e

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

ci/build-smoke-test-image.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
platform: linux
3+
4+
image_resource:
5+
type: registry-image
6+
source:
7+
repository: vito/oci-build-task
8+
9+
inputs:
10+
- name: docker-image-resource
11+
path: .
12+
13+
outputs:
14+
- name: image
15+
16+
params:
17+
DOCKERFILE: ~
18+
UNPACK_ROOTFS: 'true'
19+
20+
run:
21+
path: build

ci/smoke-test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
platform: linux
3+
4+
image_resource:
5+
type: registry-image
6+
source:
7+
repository: concourse/docker-image-resource
8+
9+
params:
10+
REPOSITORY: ~
11+
12+
outputs:
13+
- name: fetched-image
14+
15+
run:
16+
path: /bin/bash
17+
args:
18+
- -exc
19+
- |
20+
pushd fetched-image
21+
jq -n '{source: {repository: $repo}}' --arg repo $REPOSITORY | \
22+
/opt/resource/check | \
23+
jq '{source: {repository: $repo}, version: last}' --arg repo $REPOSITORY | \
24+
/opt/resource/in .
25+
popd

0 commit comments

Comments
 (0)