test: make test cases unique and test de-duplication
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Used by CI to test get-images-from-files action (K8s manifest, registry refs only)
|
||||
# Used by CI to test get-images-from-files action (K8s, distinct from Dockerfile)
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@@ -9,12 +9,11 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: app
|
||||
image: example.com/library/app:1.25-alpine
|
||||
- name: sidecar
|
||||
image: example.com/library/redis:7-alpine
|
||||
- name: distroless
|
||||
# Registry with tag (K8s)
|
||||
image: example.com/library/app:v2
|
||||
- name: shared
|
||||
# Same ref as in test.Dockerfile — tests deduplication
|
||||
image: example.com/distroless/static:nonroot
|
||||
- name: by-digest
|
||||
image: example.com/library/alpine@sha256:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
|
||||
- name: fqdn-digest
|
||||
image: example.com/myproject/myimg@sha256:abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcd
|
||||
# Registry with digest (K8s)
|
||||
image: example.com/myproject/helper@sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
||||
|
||||
Reference in New Issue
Block a user