Skip to content

Commit

Permalink
ci: add publish squashfs layers
Browse files Browse the repository at this point in the history
Signed-off-by: Petu Eusebiu <[email protected]>
  • Loading branch information
eusebiu-constantin-petu-dbk committed Nov 20, 2023
1 parent 92a6802 commit 7d0a1a9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/builds/second/stacker.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config:
prerequisites:
- ../sub1/stacker.yaml
- ../first/stacker.yaml
layer2:
from:
type: built
Expand Down
4 changes: 2 additions & 2 deletions test/builds/third/stacker.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config:
prerequisites:
- ../sub1/stacker.yaml
- ../sub2/stacker.yaml
- ../first/stacker.yaml
- ../second/stacker.yaml
layer3_1:
from:
type: built
Expand Down

0 comments on commit 7d0a1a9

Please sign in to comment.