Skip to content
name: pull-build-image-detector
on:
pull_request_target:
types: [ opened, edited, synchronize, reopened, ready_for_review ]
paths:
- "cmd/image-detector/*.go"
- "cmd/image-detector/Dockerfile"
- "pkg/**"
- "go.mod"
- "go.sum"
jobs:
build-image:
uses: ./.github/workflows/image-builder.yml
with:
name: image-detector
dockerfile: cmd/image-detector/Dockerfile
context: .
print-image:
runs-on: ubuntu-latest
needs: build-image
steps:
- name: Print image
run: echo "Image built ${{ needs.build-image.outputs.images }}"