From 7d0a1a9e33575c6a96b6f51503d3b35a340f6929 Mon Sep 17 00:00:00 2001 From: Petu Eusebiu Date: Mon, 20 Nov 2023 13:01:21 +0200 Subject: [PATCH] ci: add publish squashfs layers Signed-off-by: Petu Eusebiu --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ test/builds/second/stacker.yaml | 2 +- test/builds/third/stacker.yaml | 4 ++-- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 18e74b1..376d62b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -98,3 +98,31 @@ jobs: url: docker://localhost:5000/five/app layer-type: 'tar squashfs' skip-tls: true + + - name: Run stacker-build with push, tags, build-args and layer-type(squashfs) + uses: ./ + with: + file: 'test/stacker.yaml' + build-args: | + SUB1=VAR1 + SUB2=VAR2 + SUB3=VAR3 + tags: v1 latest + url: docker://localhost:5000/six/app + layer-type: 'squashfs' + skip-tls: true + + - name: Check images were published + run: | + docker pull localhost:5000/one/app/test:v1 + docker pull localhost:5000/one/app/test + docker pull localhost:5000/two/app/test:v1 + docker pull localhost:5000/two/app/test + docker pull localhost:5000/three/app/test:v1 + docker pull localhost:5000/three/app/test + docker pull localhost:5000/four/app/app:v1 + docker pull localhost:5000/four/app/app + docker pull localhost:5000/five/app/test:v2 + docker pull localhost:5000/six/app/test:v1 + docker pull localhost:5000/six/app/test + diff --git a/test/builds/second/stacker.yaml b/test/builds/second/stacker.yaml index bac37cb..19c433c 100644 --- a/test/builds/second/stacker.yaml +++ b/test/builds/second/stacker.yaml @@ -1,6 +1,6 @@ config: prerequisites: - - ../sub1/stacker.yaml + - ../first/stacker.yaml layer2: from: type: built diff --git a/test/builds/third/stacker.yaml b/test/builds/third/stacker.yaml index 89f9a81..9edcb9c 100644 --- a/test/builds/third/stacker.yaml +++ b/test/builds/third/stacker.yaml @@ -1,7 +1,7 @@ config: prerequisites: - - ../sub1/stacker.yaml - - ../sub2/stacker.yaml + - ../first/stacker.yaml + - ../second/stacker.yaml layer3_1: from: type: built