test: Add an e2e test for build&push (#69)

* test: Add an e2e test for build&push

* test: Add image cleanup

* test: Switch to assert.NoError
This commit is contained in:
Anton Ovchinnikov
2025-06-09 22:10:53 +02:00
committed by GitHub
parent 971b21d6c1
commit 2f55af0cab
11 changed files with 196 additions and 19 deletions
@@ -1,3 +0,0 @@
FROM busybox:1.37.0-musl
ENV SERVICE_NAME=busybox-first
@@ -1,3 +0,0 @@
FROM busybox:1.37.0-musl
ENV SERVICE_NAME=busybox-second
@@ -2,13 +2,13 @@ services:
service-no-build:
image: portainer/pause:3.9
busybox-first:
image: localhost:5000/busybox-first
service-first:
image: 127.0.0.1:${TEST_REGISTRY_PORT}/service-first
build:
context: busybox-first/
context: service-first-dir/
busybox-second:
image: localhost:5000/busybox-second
service-second:
image: 127.0.0.1:${TEST_REGISTRY_PORT}/service-second:version2
build:
context: busybox-second/
context: service-second-dir/
dockerfile: Dockerfile.alt
@@ -0,0 +1,3 @@
FROM portainer/pause:3.9
ENV SERVICE_NAME=service-first
@@ -0,0 +1,3 @@
FROM portainer/pause:3.9
ENV SERVICE_NAME=service-second