Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AjitPadhi-Microsoft committed Nov 25, 2024
1 parent 4545a48 commit 84a33b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Build Docker Images

on:
push:
branches:
- main
- dev
- demo
workflow_run:
workflows: [Tests]
types: [completed]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
uses: actions/checkout@v4

- name: Docker Login
if: ${{ inputs.push == true && contains(github.ref, 'refs/heads/main') }}
if: ${{ inputs.push == true && github.ref_name == 'main' }}
uses: docker/login-action@v3
with:
registry: ${{ inputs.registry }}
username: ${{ inputs.username }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Dev Docker Login
if: ${{ inputs.push == true && (contains(github.ref, 'refs/heads/dev') || contains(github.ref, 'refs/heads/demo')) }}
if: ${{ inputs.push == true && (github.ref_name == 'dev' || github.ref_name == 'demo') }}
uses: docker/login-action@v3
with:
registry: ${{ inputs.registry }}
Expand Down

0 comments on commit 84a33b5

Please sign in to comment.