-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1 KB
/
build-push.yml
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
name: Images
on:
release:
types: [published]
push:
branches:
- main
- next
- dev
paths-ignore:
- "src/api-db-migrations/**"
- ".github/workflows/build-push.migrations.yml"
- ".github/workflows/pr-labeler.yml"
- ".github/workflows/release-drafter.yml"
- ".github/workflows/release-version.yml"
- ".github/pr-labeler.yml"
- ".github/release-drafter.yml"
- "Dockerfile.migrations"
workflow_call:
inputs:
ref:
required: true
type: string
default: ${{ github.ref }}
jobs:
call-build-and-push:
name: Call image build
uses: CirclesUBI/.github/.github/workflows/build-and-push.yml@main
if: ( inputs.ref == 0 )
with:
image-name: "api-server"
secrets: inherit
call-build-and-push-ref:
name: Call tagged image build
uses: CirclesUBI/.github/.github/workflows/build-and-push.yml@main
if: ( inputs.ref != 0 )
with:
image-name: "api-server"
ref: ${{ inputs.ref }}
secrets: inherit