-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 992 Bytes
/
images-main.yaml
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
---
name: Build and Push Images on Merge to Main
"on":
workflow_dispatch: {}
push:
branches:
- main
paths:
- api/**
- cmd/**
- deploy/charts/**
- internal/**
- Dockerfile
permissions: {}
jobs:
run_unit_tests:
uses: ./.github/workflows/tests.yaml
permissions:
# required by downstream jobs
contents: read
build_and_push_image_for_main:
needs: run_unit_tests
uses: ./.github/workflows/build-and-push-image.yaml
with:
environment: dev
image: prefect-operator-dev
# this is required so that the workflow can read secrets rom the environment
secrets: inherit
create_helm_release:
needs: build_and_push_image_for_main
uses: ./.github/workflows/helm-release.yaml
permissions:
# required by downstream jobs
contents: write
with:
mode: main-merge
# this is required so that the workflow can read secrets
# from the environment
secrets: inherit