Skip to content

Commit

Permalink
only push to docker repository when commit happens
Browse files Browse the repository at this point in the history
  • Loading branch information
pohhsu committed Oct 26, 2023
1 parent 582860f commit 403ee7f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,23 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
- name: Build Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: migrationTool
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
if: ${{ github.event_name == 'push' }}
with:
context: migrationTool
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


build-playbackservice:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 403ee7f

Please sign in to comment.