Skip to content

Commit f2b0879

Browse files
ci: remove auto-sync on push/PR; keep manual dispatch only (#256)
Delete sync-app.yaml, which auto-synced app configs on every push to main (prod) and every PR (stage). We don't want deploys triggered by merge or PR. sync-all-apps.yaml (workflow_dispatch) remains the only sync path.
1 parent 70d9b1e commit f2b0879

2 files changed

Lines changed: 7 additions & 127 deletions

File tree

.github/workflows/README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# Sync workflows
22

3-
`sync-app.yaml` and `sync-all-apps.yaml` sync app configs to a Nuon API using a
4-
per-environment [GitHub Environment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)
3+
`sync-all-apps.yaml` syncs app configs to a Nuon API using a per-environment
4+
[GitHub Environment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment)
55
secret named `NUON_CONFIG`.
66

7-
- `sync-app.yaml` runs on PRs (against the `stage` environment) and on pushes to
8-
`main` (against the `prod` environment).
9-
- `sync-all-apps.yaml` is dispatched manually (or on schedule) and lets you pick
10-
the environment, ref, and an optional subset of apps.
7+
- `sync-all-apps.yaml` is dispatched manually and lets you pick the environment,
8+
ref, and an optional subset of apps. Syncing never happens automatically on
9+
PRs or pushes.
1110

12-
Each job selects a GitHub Environment and reads `secrets.NUON_CONFIG` from it,
11+
The job selects a GitHub Environment and reads `secrets.NUON_CONFIG` from it,
1312
writing the value to `$HOME/.nuon` before running `nuon apps sync`.
1413

1514
## Adding a new environment
@@ -72,8 +71,7 @@ The `NUON_CONFIG` secret is the full `~/.nuon` YAML config, and its `api_token`
7271
```
7372

7473
6. To make it selectable in `sync-all-apps.yaml`, add the environment name to the
75-
`environment` input `options` list. To use it automatically in `sync-app.yaml`,
76-
update the `environment:` expression on the `sync` job.
74+
`environment` input `options` list.
7775

7876
Because the secret carries `api_url`, `org_id`, and the admin `api_token`, each
7977
environment is fully scoped by its own `NUON_CONFIG` — no other workflow changes

.github/workflows/sync-app.yaml

Lines changed: 0 additions & 118 deletions
This file was deleted.

0 commit comments

Comments
 (0)