Skip to content

Commit

Permalink
ci: fix expression syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kskarthik committed Apr 23, 2024
1 parent b2ca68e commit a9049f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ jobs:

# docker related ops, only run on tags
- name: Commit the docker container
if: ${{github.ref.type == 'tag'}}
if: ${{github.ref_type == 'tag'}}
run: |
docker commit fin kskarthik/indian-fincodes-api:latest
docker tag kskarthik/indian-fincodes-api:latest kskarthik/indian-fincodes-api:${{ github.ref.name }}
- name: Authenticate to Docker Hub
if: ${{github.ref.type == 'tag'}}
if: ${{github.ref_type == 'tag'}}
run: docker login -u kskarthik -p ${{ secrets.DOCKER_HUB_PWD }}

- name: Push Docker Image to Hub
if: ${{github.ref.type == 'tag'}}
if: ${{github.ref_type == 'tag'}}
run: |
docker push kskarthik/indian-fincodes-api:latest
docker push kskarthik/indian-fincodes-api:${{ github.ref.name }}

0 comments on commit a9049f3

Please sign in to comment.