-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (75 loc) · 2.8 KB
/
Copy pathdeploy-prod.yml
File metadata and controls
81 lines (75 loc) · 2.8 KB
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
71
72
73
74
75
76
77
78
79
80
81
name: Deploy to Production
on:
workflow_dispatch:
inputs:
image-tag:
type: string
required: true
description: "Image tag to deploy (e.g., v0.10.7 for releases)"
deploy-app:
type: boolean
default: true
description: (Re-)deploys the app components
deploy-core:
default: false
type: boolean
description: (Re-)deploys NATS and the Webhook Server (application-server image with the webhook profile). Usually not necessary and might cause data gaps.
deploy-proxy:
default: false
type: boolean
description: (Re-)deploys the proxy components. Usually not necessary and might cause downtime.
workflow_call:
inputs:
image-tag:
type: string
required: true
description: "Image tag to deploy (e.g., v0.10.7 for releases)"
deploy-app:
type: boolean
default: true
description: (Re-)deploys the app components
deploy-core:
default: false
type: boolean
description: (Re-)deploys NATS and the Webhook Server (application-server image with the webhook profile). Usually not necessary and might cause data gaps.
deploy-proxy:
default: false
type: boolean
description: (Re-)deploys the proxy components. Usually not necessary and might cause downtime.
concurrency:
group: deploy-production
cancel-in-progress: false
jobs:
deploy-app:
if: ${{ inputs.deploy-app }}
uses: ls1intum/.github/.github/workflows/deploy-docker-compose.yml@main
with:
environment: Production
docker-compose-file: "./docker/compose.app.yaml"
main-image-name: ls1intum/hephaestus/application-server
image-tag: ${{ inputs.image-tag }}
deployment-base-path: "/opt/hephaestus/app"
secrets: inherit
deploy-core:
if: ${{ inputs.deploy-core }}
uses: ls1intum/.github/.github/workflows/deploy-docker-compose.yml@main
with:
environment: Production
docker-compose-file: "./docker/compose.core.yaml"
# compose.core.yaml now runs `webhook-server` from the application-server image
# (SPRING_PROFILES_ACTIVE=prod,webhook). See ADR 0008.
main-image-name: ls1intum/hephaestus/application-server
image-tag: ${{ inputs.image-tag }}
deployment-base-path: "/opt/hephaestus/core"
secrets: inherit
deploy-proxy:
if: ${{ inputs.deploy-proxy }}
uses: ls1intum/.github/.github/workflows/deploy-docker-compose.yml@main
with:
environment: Production
docker-compose-file: "./docker/compose.proxy.yaml"
# We just keep the main-image-name and image-tag as placeholders
main-image-name: ls1intum/hephaestus/application-server
image-tag: ${{ inputs.image-tag }}
deployment-base-path: "/opt/hephaestus/proxy"
secrets: inherit