feat: update build workflow to create and publish all-in-one Docker image on approved PRs
This commit is contained in:
6
.github/agents/infra.agent.md
vendored
6
.github/agents/infra.agent.md
vendored
@@ -22,7 +22,7 @@ You are a senior DevOps / infrastructure engineer and software architect for the
|
||||
| `docker/supervisord.conf` | Supervisor config (manages postgres + java + nginx inside allinone) |
|
||||
| `docker/entrypoint.sh` | Allinone container entrypoint (DB init, env wiring, supervisord start) |
|
||||
| `.gitea/workflows/ci.yml` | CI: backend tests + frontend tests on pull requests to `develop` |
|
||||
| `.gitea/workflows/build.yml` | Build: create the local all-in-one image on approved PRs to `main` |
|
||||
| `.gitea/workflows/build.yml` | Build: create and publish the all-in-one image on approved PRs to `main` |
|
||||
| `.env.example` | Template for all environment variables |
|
||||
|
||||
## System Topology
|
||||
@@ -81,9 +81,9 @@ All injected at runtime — never hardcoded in images.
|
||||
| Workflow | Trigger | What it does |
|
||||
|---|---|---|
|
||||
| `ci.yml` | Pull request to `develop` | Backend `./gradlew test` + Frontend `npm run test` |
|
||||
| `build.yml` | Approved PR review to `main` | Builds `condado-newsletter` on the target Docker host |
|
||||
| `build.yml` | Approved PR review to `main` | Builds `condado-newsletter` on the target Docker host, then pushes `latest` and `${github.sha}` tags to Gitea container registry |
|
||||
|
||||
The runner shares the target Docker host, so this workflow produces the local `condado-newsletter` image directly on that host. `docker-compose.prod.yml` must reference that image and not local build directives.
|
||||
The runner shares the target Docker host, so this workflow builds the image locally, tags it for `gitea.lab/sancho41/condado-newsletter`, and pushes it to Gitea container registry. `docker-compose.prod.yml` must reference that published image and not local build directives.
|
||||
|
||||
## Implementation Rules
|
||||
|
||||
|
||||
Reference in New Issue
Block a user