Skip to content

Commit 647f545

Browse files
committed
ci: run container from img
1 parent 9bc9380 commit 647f545

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ jobs:
4444
4545
- name: Build Docker image
4646
run: docker build -f dockerfile/Dockerfile -t my-app-image:${{ github.sha }} dockerfile/
47+
48+
- name: Run Docker container
49+
run: |
50+
# arranca en background y asigna nombre para poder pararlo después
51+
docker run -d --name my-app-container -p 8080:8080 my-app-image:${{ github.sha }}

0 commit comments

Comments
 (0)