Skip to content

Commit

Permalink
Update cicd.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gilmaimon authored Jul 26, 2024
1 parent de19ed9 commit ff28237
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ jobs:
deploy:
needs: build # Ensure deploy job waits for build job
runs-on: ubuntu-latest

if: github.ref == 'refs/heads/master'
steps:
- name: Log in to Docker Hub
uses: docker/login-action@v2
if: github.ref == 'refs/heads/master'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Push Docker image
if: github.ref == 'refs/heads/master'
run: docker push server:latest

0 comments on commit ff28237

Please sign in to comment.