From ec5ddfc310ec4d144bcc7c116f0f6a93dfa33219 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Fri, 13 Dec 2024 19:06:30 +0100 Subject: [PATCH] Adding rudimental image test --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 198a289..61ea1d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,6 +70,13 @@ jobs: tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test context: . + - name: Test Docker image + id: test-image + run: | + docker run -d -p 8888:8888 --name nextcloud --rm ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test && \ + docker exec nextcloud occ status && \ + nc -z localhost 8888 + - name: Push Docker image id: push if: github.event_name != 'pull_request'