Skip to content

Commit c5d4dfd

Browse files
feat: added ci/cd with self hosted cd pipeline
1 parent f7a53ab commit c5d4dfd

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
types:
88
- completed
99
branches:
10+
- master
1011
- main
1112
workflow_dispatch:
1213
inputs:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ GHCR note: you do not need a separate GHCR account; GHCR uses your existing GitH
235235
- Docker smoke builds for frontend and backend images
236236

237237
- `.github/workflows/cd.yml`
238-
- Auto deploy runs only after CI succeeds on `main` via `workflow_run`
238+
- Auto deploy runs only after CI succeeds on the default branch (`master` in this repo; `main` also supported) via `workflow_run`
239239
- Manual runs supported through `workflow_dispatch`
240240
- Supports rollback mode with an explicit image tag
241241
- Builds and pushes images to GHCR:
@@ -256,8 +256,8 @@ GHCR note: you do not need a separate GHCR account; GHCR uses your existing GitH
256256
- `BOOKAPP_ENV_FILE` = absolute path to the server env file (example: `/opt/bookapp/.env`)
257257
- `BOOKAPP_SMOKE_URL` = optional frontend smoke URL (default: `http://127.0.0.1:4353/`)
258258
- `BOOKAPP_API_SMOKE_URL` = optional backend smoke URL (default: `http://127.0.0.1:4353/api/healthz`)
259-
6. Enable branch protection on `main` and require the CI checks from `.github/workflows/ci.yml` before merge.
260-
7. Merge changes to `main` to trigger automated CD.
259+
6. Enable branch protection on your default branch (`master`) and require the CI checks from `.github/workflows/ci.yml` before merge.
260+
7. Merge changes to your default branch (`master`) to trigger automated CD.
261261

262262
Deployment command used by the workflow:
263263

0 commit comments

Comments
 (0)