Skip to content

Commit

Permalink
don't clone on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathchandra24 committed Mar 4, 2024
1 parent ec69d85 commit 2fe2b13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-op-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ jobs:
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./cmd/fluent-manager/Dockerfile
Expand All @@ -120,7 +120,7 @@ jobs:
registry_password: ${{ secrets.GITHUB_TOKEN }}

release-image-to-docker-hub:
if: always()
if: ${{ github.event_name != 'pull_request' }}
name: Release Image to Docker Hub
uses: ./.github/workflows/call-clone-images.yaml
needs:
Expand Down

0 comments on commit 2fe2b13

Please sign in to comment.