-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.2 KB
/
_docker-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
45
46
47
48
49
name: Docker Main
on:
workflow_call:
inputs:
FILE:
type: string
default: Dockerfile
PROJECT:
type: string
required: true
GCP_REGISTRY:
type: string
required: false
default: "eu.gcr.io"
DOCKER_IMAGE_TAG:
type: string
required: true
GCP_PROJECT_ID:
type: string
required: true
secrets:
GCR_JSON_KEY:
required: true
SSH_KEY:
required: false
jobs:
unittest:
uses: t3n/github-actions/.github/workflows/docker-unittest.yaml@main
with:
FILE: ${{inputs.FILE}}
build:
uses: t3n/github-actions/.github/workflows/docker-build.yaml@main
secrets: inherit
with:
FILE: ${{inputs.FILE}}
PROJECT: ${{inputs.PROJECT}}
security:
uses: t3n/github-actions/.github/workflows/docker-security.yaml@main
with:
PROJECT: ${{inputs.PROJECT}}
release:
uses: t3n/github-actions/.github/workflows/docker-release.yaml@main
with:
PROJECT: ${{inputs.PROJECT}}
GCP_REGISTRY: ${{inputs.GCP_REGISTRY}}
DOCKER_IMAGE_TAG: ${{inputs.DOCKER_IMAGE_TAG}}
GCP_PROJECT_ID: ${{inputs.GCP_PROJECT_ID}}
secrets: inherit