Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
Indentation: The block starting from - name: Build & push Docker image was not correctly indented, which caused an error. Now it's aligned with the other steps in the workflow.
  • Loading branch information
parveez36khan authored Sep 19, 2024
1 parent a289fb6 commit f2ccc60
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
- 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 @@ -65,13 +64,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 }}

- name: Build & push Docker image # Fix indentation
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 f2ccc60

Please sign in to comment.