-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (44 loc) · 1.01 KB
/
images-prs.yaml
File metadata and controls
48 lines (44 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: Build Images on Pull Requests
"on":
pull_request:
branches:
- main
paths:
- api/**
- cmd/**
- internal/**
- test/**
- Dockerfile
- Makefile
- .github/workflows/images-prs.yaml
- .github/workflows/build-and-push-image.yaml
- .github/workflows/tests.yaml
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
permissions: {}
jobs:
run_unit_tests:
uses: ./.github/workflows/tests.yaml
permissions:
# required by downstream jobs
contents: read
build_and_push_image_for_prs:
uses: ./.github/workflows/build-and-push-image.yaml
permissions:
# required by downstream jobs
actions: read
contents: read
id-token: write
security-events: write
with:
docker-login: false
push: false
environment: dev
image: prefect-operator-dev
# this is required so that the workflow can read secrets from the environment
secrets: inherit