Adding rudimental image test

This commit is contained in:
Jan Wagner 2024-12-13 19:06:30 +01:00
parent 5b0c07e2d8
commit ec5ddfc310
No known key found for this signature in database
GPG Key ID: 0C70557B5A06513E

View File

@ -70,6 +70,13 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
context: . 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 - name: Push Docker image
id: push id: push
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'