Skip to content

Commit

Permalink
feat: update ci with docker #6
Browse files Browse the repository at this point in the history
  • Loading branch information
balajtimate committed Oct 16, 2023
1 parent 7b1290f commit 1a8c7af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ jobs:
name: build and publish app image
runs-on: ubuntu-latest
if: |
github.event_name == 'push'
github.event_name == 'push' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
steps:

Expand All @@ -109,7 +110,7 @@ jobs:
dockerfile: .
image-name: "scrnasim-toolz"
tags: "latest ${{ env.TAG }}"
push-branches: add_docker
push-branches: "${{ github.event.repository.default_branch }}"
env:
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_LOGIN }}
REGISTRY_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}"
Expand Down

0 comments on commit 1a8c7af

Please sign in to comment.