Skip to content

Commit

Permalink
adding pushing protocol by branch in yml
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed May 16, 2024
1 parent c7b8e01 commit 9fe7505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Build and Push Docker Image
- name: Build and Push Backend Docker Image
if: github.ref == 'refs/heads/main'
run: |
export CURRENT_BRANCH=${GITHUB_REF#refs/heads/}
export TAG=$([[ $CURRENT_BRANCH == $(basename ${{ github.ref }}) ]] && echo $CURRENT_BRANCH || echo "latest")
Expand Down

0 comments on commit 9fe7505

Please sign in to comment.