Skip to content

Commit

Permalink
push rootless images for PRs too
Browse files Browse the repository at this point in the history
  • Loading branch information
cgdolan committed Aug 30, 2023
1 parent 5ff9867 commit b6463ff
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,33 @@ jobs:
repository-name: ${{ github.repository }}
dry-run: false

build-docker-rootless:
uses: ./.github/workflows/build-test-docker.yaml
secrets: inherit
with:
docker-tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=ref,event=pr
type=ref,event=branch
type=sha,event=branch
type=edge
artifact-name: image-test-rootless
repository-name: ${{ github.repository }}
file: Dockerfile
target: semgrep-cli
enable-tests: false

push-docker-rootless:
needs: [build-docker-rootless]
uses: ./.github/workflows/push-docker.yaml
if: github.ref == 'refs/heads/develop' || (github.actor != 'dependabot[bot]' && !(github.event.pull_request.head.repo.full_name != github.repository))
secrets: inherit
with:
artifact-name: image-test-rootless
repository-name: ${{ github.repository }}
dry-run: false

test-semgrep-pro:
needs: [build-test-docker, push-docker]
uses: ./.github/workflows/test-semgrep-pro.yaml
Expand Down

0 comments on commit b6463ff

Please sign in to comment.