-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 911 Bytes
/
ci-cd.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: CI/CD Pipeline
on:
push:
tags:
- v*
workflow_dispatch:
inputs:
publish_docker:
description: 'Publish to Docker'
required: false
default: false
type: boolean
update_server:
description: 'Update runner'
required: false
default: true
type: boolean
tag:
required: false
description: 'Tag to deploy'
type: string
jobs:
compile:
uses: ./.github/workflows/compile.yml
publish:
uses: ./.github/workflows/publish.yml
needs: [compile]
with:
publish_docker: ${{ inputs.publish_docker || true }}
publish_github: ${{ github.event_name != 'workflow_dispatch' }}
secrets: inherit
deploy:
uses: ./.github/workflows/deploy.yml
if: ${{ inputs.update_server || true }}
needs: [publish]
secrets: inherit
with:
tag: ${{ inputs.tag }}