Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
parveez36khan committed Sep 19, 2024
2 parents ab3bec9 + c9fc069 commit a289fb6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ jobs:
- name: Build with Maven
run: mvn clean install

- name: Ensure wait-for-it.sh is executable
run: chmod +x ./wait-for-it.sh

- name: Wait for MySQL to be ready
run: ./wait-for-it.sh localhost:3306 --timeout=60 --strict -- echo "MySQL is up"


- name: Run tests
run: mvn test

Expand All @@ -61,3 +65,13 @@ jobs:
with:
name: smartcontact-app
path: target/*.war

- name: Build & push Docker image
uses: mr-smithers-excellent/docker-build-push@v5
with:
image: parveezkhan/smart-contact-manager
tags: latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

0 comments on commit a289fb6

Please sign in to comment.