Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed May 22, 2024
1 parent bbe591e commit a35818e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test buidling Docker image
name: Build and test Docker image

on:
push:
Expand Down Expand Up @@ -27,4 +27,14 @@ jobs:
with:
context: .
push: false
tags: user/test-image:latest
tags: ${{ env.IMAGE_NAME }}:latest

- name: List Docker images
run: docker images

- name: Run Docker container
run: |
docker run --name test-container ${{ env.IMAGE_NAME }}:latest
sleep 5
docker logs test-container
docker stop test-container

0 comments on commit a35818e

Please sign in to comment.