Skip to content

Commit

Permalink
chore: revert git build/push flag for pr branch to disable build/push…
Browse files Browse the repository at this point in the history
… when branch is a pr
  • Loading branch information
eumoh1601 committed May 15, 2024
1 parent 8c903b3 commit 73f29d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
registry: us-docker.pkg.dev
username: _json_key
password: ${{ secrets.GAR_JSON_KEY }}
if: github.event_name != 'pull_request'

- run: |
echo "LAST_COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
Expand All @@ -59,6 +60,7 @@ jobs:
platforms: linux/amd64,linux/arm64
push: false
tags: us-docker.pkg.dev/influxdb2-artifacts/tubernetes/sinker:${{ env.LAST_COMMIT_SHA }}
if: github.event_name == 'pull_request'

- name: Build & Push
uses: depot/build-push-action@v1
Expand All @@ -68,3 +70,4 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: us-docker.pkg.dev/influxdb2-artifacts/tubernetes/sinker:${{ env.LAST_COMMIT_SHA }}
if: github.event_name != 'pull_request'

0 comments on commit 73f29d6

Please sign in to comment.