mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2025-04-19 20:19:24 +00:00
Adding rudimental image test
This commit is contained in:
parent
5b0c07e2d8
commit
ec5ddfc310
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user