Skip to content

Commit d70b78d

Browse files
committed
Fix load-docker-image tests
1 parent 4a60907 commit d70b78d

1 file changed

Lines changed: 2 additions & 51 deletions

File tree

.github/workflows/test-load-docker-image.yml

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Upload test image as artifact
2626
uses: actions/upload-artifact@v4
2727
with:
28-
name: docker-image
28+
name: nginx-alpine.tar
2929
path: nginx-alpine.tar
3030
retention-days: 1
3131

@@ -36,7 +36,7 @@ jobs:
3636
id: test-basic
3737
uses: ./load-docker-image
3838
with:
39-
artifact-name: 'docker-image'
39+
artifact-name: 'nginx-alpine.tar'
4040
image-name: 'nginx'
4141
tag: 'alpine'
4242

@@ -154,52 +154,3 @@ jobs:
154154
fi
155155
156156
echo "✅ Error handling test passed - action correctly failed with non-existent artifact"
157-
158-
test-with-minikube:
159-
runs-on: ubuntu-latest
160-
161-
steps:
162-
- name: Checkout repository
163-
uses: actions/checkout@v4
164-
165-
- name: Setup Minikube
166-
uses: ./setup-minikube
167-
with:
168-
minikube-version: 'v1.36.0'
169-
kubernetes-version: 'v1.33.3'
170-
171-
- name: Pull and save test image
172-
run: |
173-
docker pull hello-world:latest
174-
docker save hello-world:latest -o hello-world.tar
175-
176-
- name: Upload test image for minikube test
177-
uses: actions/upload-artifact@v4
178-
with:
179-
name: minikube-test-image
180-
path: hello-world.tar
181-
retention-days: 1
182-
183-
- name: Remove local image
184-
run: docker rmi hello-world:latest
185-
186-
- name: Test loading with minikube
187-
id: test-minikube
188-
uses: ./load-docker-image
189-
with:
190-
artifact-name: 'minikube-test-image'
191-
image-name: 'hello-world'
192-
tag: 'latest'
193-
minikube: 'true'
194-
195-
- name: Verify minikube loading
196-
run: |
197-
echo "Minikube loaded image: ${{ steps.test-minikube.outputs.loaded-image }}"
198-
199-
# Verify image is in minikube
200-
if ! minikube image ls | grep -q "hello-world"; then
201-
echo "❌ Error: Image not loaded into minikube"
202-
exit 1
203-
fi
204-
205-
echo "✅ Minikube loading test passed"

0 commit comments

Comments
 (0)