Skip to content

Commit b49423d

Browse files
committed
ci(github): isolate container test workflow
1 parent 989723a commit b49423d

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/container.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Container Tests
2+
3+
jobs:
4+
integration_test:
5+
name: 🚥 Container test
6+
needs:
7+
- Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- run: docker pull ghcr.io/${{ github.repository }}:${{ github.sha }}
12+
- name: 🚥 Run Container Tests
13+
uses: docker://gcr.io/gcp-runtimes/container-structure-test:v1.15.0
14+
with:
15+
args: test --config container-structure-test.yml --image ghcr.io/${{ github.repository }}:${{ github.sha }} --verbosity debug

.github/workflows/docker.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,3 @@ jobs:
4141
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max
4242
build-args: |
4343
SOURCE_COMMIT=${{ github.sha }}
44-
45-
integration_test:
46-
name: 🚥 Integration test
47-
needs:
48-
- Build
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v4
52-
- run: docker pull ghcr.io/${{ github.repository }}:${{ github.sha }}
53-
- name: 🚥 Run Container Tests
54-
uses: docker://gcr.io/gcp-runtimes/container-structure-test:v1.15.0
55-
with:
56-
args: test --config container-structure-test.yml --image ghcr.io/${{ github.repository }}:${{ github.sha }} --verbosity debug

0 commit comments

Comments
 (0)