-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (61 loc) · 1.59 KB
/
ci.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
workflow_dispatch:
inputs:
docker_hub_organisation:
type: string
description: DockerHub organization
default: mahendrapaipuri
quay_io_organization:
type: string
description: Quay.io organization
default: mahendrapaipuri
push:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- ".github/workflows/**"
- ".golangci.yml"
branches: [main]
pull_request:
branches: [main]
permissions:
# All nested workflows will inherit these permissions and so no need to declare
# in each step file
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-lint:
uses: ./.github/workflows/step_tests-lint.yml
test-unit:
needs: [test-lint]
uses: ./.github/workflows/step_tests-unit.yml
# To update coverage badge
permissions:
contents: write
test-e2e:
needs: [test-lint]
uses: ./.github/workflows/step_tests-e2e.yml
build:
needs: [test-lint, test-unit, test-e2e]
uses: ./.github/workflows/step_build.yml
packaging:
needs: [build]
uses: ./.github/workflows/step_packaging.yml
docker:
needs: [build]
uses: ./.github/workflows/step_docker.yml
with:
registry: "docker.io"
organization: ${{ inputs.docker_hub_organization }}
# quay:
# needs: [build]
# uses: ./.github/workflows/step_quay.yml
# with:
# registry: "quay.io"
# organization: ${{ inputs.quay_organization }}
# login: ${{ secrets.quay_login }}
# password: ${{ secrets.quay_password }}