Skip to content

Commit

Permalink
Adding rudimental image test
Browse files Browse the repository at this point in the history
  • Loading branch information
waja committed Dec 18, 2024
1 parent 5b0c07e commit ec5ddfc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit ec5ddfc

Please sign in to comment.