-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.3 KB
/
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
43
name: CI/CD
run-name: CI/CD ${{github.event.pull_request.title}}
on:
pull_request:
types: [ opened, synchronize, closed ]
permissions:
contents: write
jobs:
Pre:
if: github.event.pull_request.merged == false && (github.event.action == 'opened' || github.event.action == 'synchronize')
uses: HornaHomeLab/Actions_Releases/.github/workflows/Process_create_release.yml@main
with:
pre_release: true
Deploy_DEV:
needs: Pre
uses: HornaHomeLab/Actions_Deployments/.github/workflows/Run_docker_compose.yml@main
with:
environment: "development"
version: ${{ needs.Pre.outputs.released_version }}
secrets: inherit
Full:
if: github.event.pull_request.merged == true && github.event.action == 'closed'
uses: HornaHomeLab/Actions_Releases/.github/workflows/Process_create_release.yml@main
with:
pre_release: false
latest: true
Deploy_PRD:
needs: Full
uses: HornaHomeLab/Actions_Deployments/.github/workflows/Run_docker_compose.yml@main
with:
environment: "production"
version: ${{ needs.Full.outputs.released_version }}
secrets: inherit
Remove:
if: github.event.pull_request.merged == false && github.event.action == 'closed'
uses: HornaHomeLab/Actions_Releases/.github/workflows/Process_remove_release.yml@main