Skip to content

Commit

Permalink
updated main.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
eieihtwesan committed Oct 4, 2024
1 parent 5ab374a commit a298e03
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ jobs:
with:
java-version: '17'
distribution: 'adopt'
- name: Compile with Maven
run: mvn compile
- name: Build Docker Image
run: docker build -t devopsimage .
- name: Run image
run: docker run --name devopscontainer -d devopsimage
- name: view logs
run: docker logs devopscontainer
- name: Build with Maven
run: mvn package
- name: Run docker compose
run: docker compose up --abort-on-container-exit

0 comments on commit a298e03

Please sign in to comment.