diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml index 92ccfe7..ae8bb15 100644 --- a/.github/workflows/docker-test.yml +++ b/.github/workflows/docker-test.yml @@ -30,7 +30,7 @@ jobs: id: meta uses: docker/metadata-action@v3 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: test-image # Use a local image name, not involving any registry - name: Build Docker image (single platform) uses: docker/build-push-action@v5 @@ -38,13 +38,13 @@ jobs: context: . platforms: linux/amd64 # Specify a single platform for building load: true # Load the image into Docker's local cache - tags: ${{ steps.meta.outputs.tags }} + tags: test-image:latest # Use a local tag cache-from: type=gha cache-to: type=gha,mode=max - name: Run Docker container for testing run: | - docker run -d -p 8080:8080 --name test_container ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} + docker run -d -p 8080:8080 --name test_container test-image:latest # Run with the locally built image sleep 2 # Wait for 2 seconds to allow the server to start - name: Test health endpoint