-
Notifications
You must be signed in to change notification settings - Fork 452
35 lines (30 loc) · 1.02 KB
/
build-image.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
name: '[Release] Build unified Docker image'
on:
push:
branches:
- master
- staging/**
pull_request:
merge_group:
jobs:
build-image:
strategy:
matrix:
group:
- name: 'staging'
if: true
sentry_key: SENTRY_KEY_staging
- name: 'prod'
if: ${{ github.ref == 'refs/heads/master' }}
sentry_key: SENTRY_KEY_prod
posthog_key: POSTHOG_KEY_prod
# Commented for now
# - name: 'enterprise'
# if: ${{ github.ref == 'refs/heads/master' }}
secrets: inherit
uses: ./.github/workflows/build-image-reusable.yaml
with:
if: ${{ matrix.group.if }}
name: ${{ matrix.group.name }}
key_for_sentry_secret: ${{ matrix.group.sentry_key }}
key_for_posthog_secret: ${{ matrix.group.posthog_key }}