You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEPLOYMENT.md
+34-28Lines changed: 34 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,8 @@
3
3
This repo uses GitHub Actions to deploy through four environments:
4
4
5
5
-**Dev** – continuous integration deploys on push to `main`. Creates a `Dev-<timestamp>` tag.
6
-
-**test** – manual deploy of an existing tag (usually a `Dev-<timestamp>` tag). No releases or SemVer tags.
7
-
-**Preprod** – manual deploy that **cuts/bumps a Release Candidate (RC)** tag (`vX.Y.Z-rc.N`) and creates a **GitHub pre-release**.
6
+
-**test** – Auto deploys the same sha that just deployed to dev (but waits for approval). No releases or SemVer tags.
7
+
-**Preprod** – Auto deploys the same sha that just deployed to test (but waits for approval) **cuts/bumps a Release Candidate (RC)** tag (`vX.Y.Z-rc.N`) and creates a **GitHub pre-release**.
8
8
-**prod** – manual promotion of a specific RC to a **final SemVer tag** (`vX.Y.Z`) and a **GitHub Release**.
9
9
10
10
Releases are immutable and auditable:
@@ -16,13 +16,13 @@ Releases are immutable and auditable:
16
16
17
17
## Workflow Map
18
18
19
-
| Stage | Workflow file | Trigger | What it does | Tags / Releases |
|**Pull Request**|`.github/workflows/cicd-1-pull-request.yml`|`pull_request` (opened/sync/reopened) | Commit/Test/Build/Acceptance stages | No tags/releases |
22
-
|**Dev**|`.github/workflows/cicd-2-publish.yml`|`push` to `main`| Builds & deploys to Dev | Creates and pushes `Dev-YYYYMMDDHHMMSS` tag |
23
-
|**Test**|`.github/workflows/cicd-3-test.yml`|Manual (`workflow_dispatch`) | Deploys the chosen tag to test | No tags, no releases |
24
-
|**Preprod**|`.github/workflows/cicd-4-Preprod-deploy.yml` → calls `base-deploy.yml`|Manual (`workflow_dispatch`) | Deploys chosen ref and **creates/bumps an RC tag**; pre-release |`vX.Y.Z-rc.N` + GitHub **pre-release**|
25
-
|**Prod**|`.github/workflows/cicd-5-prod-deploy.yml` → calls `base-deploy.yml`| Manual (`workflow_dispatch`) | Promotes a specific RC to final |`vX.Y.Z` + GitHub **Release**|
19
+
| Stage | Workflow file | Trigger | What it does | Tags / Releases |
|**Pull Request**|`.github/workflows/cicd-1-pull-request.yml`|`pull_request` (opened/sync/reopened) | Commit/Test/Build/Acceptance stages | No tags/releases |
22
+
|**Dev**|`.github/workflows/cicd-2-publish.yml`|`push` to `main`| Builds & deploys to Dev | Creates and pushes `Dev-YYYYMMDDHHMMSS` tag |
23
+
|**Test**|`.github/workflows/cicd-3-test.yml`|Auto (`workflow_run`) | Deploys the sha from the run that triggered it| No tags, no releases |
24
+
|**Preprod**|`.github/workflows/cicd-4-Preprod-deploy.yml` → calls `base-deploy.yml`|Auto (`workflow_run`) | Deploys the same sha and **creates/bumps an RC tag**; pre-release |`vX.Y.Z-rc.N` + GitHub **pre-release**|
25
+
|**Prod**|`.github/workflows/cicd-5-prod-deploy.yml` → calls `base-deploy.yml`| Manual (`workflow_dispatch`) | Promotes a specific RC to final |`vX.Y.Z` + GitHub **Release**|
26
26
27
27
> **Note:** The Preprod/prod entry workflows are thin wrappers around a **reusable** workflow (`base-deploy.yml`).
28
28
@@ -58,44 +58,47 @@ Releases are immutable and auditable:
58
58
- Creates a timestamped **Dev tag**: `Dev-YYYYMMDDHHMMSS`
59
59
- No SemVer, no GitHub Release.
60
60
61
+
- Can be manually deployed to flow a candidate though piepline outside of merge
62
+
61
63
**Why:** fast feedback and a stable pointer (the Dev tag) you can later promote to **test** or use as the **Preprod ref**.
62
64
63
65
---
64
66
65
-
## Test Deployment (manual, by tag)
67
+
## Test Deployment
66
68
67
69
**File:**`CI/CD deploy to TEST`
68
-
**Trigger:**manual (`workflow_dispatch`)
70
+
**Trigger:**Auto (`workflow_run`)
69
71
70
72
### Inputs
71
73
72
-
-`tag`: the ref to deploy (e.g., a **Dev** tag created by the Dev workflow).
73
-
-`environment`: fixed to `test`.
74
+
- taken from previous workflow
74
75
75
76
### Behavior
76
77
77
-
- Checks out the provided tag, builds, and deploys to **test**.
78
+
- Waits for approval to continue
79
+
- Checks out the ref, builds, and deploys to **test**.
78
80
-**No new tags** created. **No GitHub Releases** created.
79
81
80
-
### Recommended usage
81
-
82
-
- Deploy the **same commit** that was verified in Dev by supplying the `Dev-<timestamp>` tag here.
0 commit comments