Skip to content

Commit

Permalink
chore: re-add checkout step
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv-ahuja committed Feb 19, 2024
1 parent a8715a5 commit fe17797
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,21 @@ jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Log into Docker Hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get Latest Tag
id: latest-tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: latest

- name: Log into Docker Hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}

- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit fe17797

Please sign in to comment.