-
-
Notifications
You must be signed in to change notification settings - Fork 94
43 lines (38 loc) · 965 Bytes
/
current.yml
File metadata and controls
43 lines (38 loc) · 965 Bytes
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
name: Build current image
permissions:
contents: read
id-token: write
packages: write
on:
push:
branches:
- main
- dev
- "release/**"
paths-ignore:
- "*.md"
- "LICENSE"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-current:
uses: ./.github/workflows/build-docker.yml
with:
tags: |
type=ref,event=branch
type=sha
trigger-e2e:
needs: build-current
uses: ./.github/workflows/e2e.yml
secrets: inherit
trigger-dev-deploy:
needs: build-current
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'dev' }}
uses: ./.github/workflows/dev-deployment.yml
secrets: inherit
trigger-staging-deploy:
needs: build-current
if: ${{ github.event_name != 'pull_request' && startsWith(github.ref_name, 'release/') }}
uses: ./.github/workflows/staging-deployment.yml
secrets: inherit