Pipeline: new names for variables and secrets, monitoring from the build environment, SSH key login #23

Merged
Sluijsens merged 4 commits from feature/asf-pipeline-names into master 2026-11-18 21:23:45 +01:00
Owner

Pipeline: the new names for repo variables and secrets (decision of Bryan, 2026-11-18), monitoring settings from the build environment, SSH key login to the Pi.

  • Names: TEST_DEPLOY_PATH, TEST_HEALTH_URL, PROD_HEALTH_URL, PROD_DEPLOY_PATH, PROD_HOST_* (FTP), TEST_HOST_* (SSH key). No OFFERINGS_URL in the test build any more (the host injects the data). No ASF_TEST_SERVED_BY_CMS: the check after the deploy always runs in CMS mode.
  • Monitoring: Sentry DSN, Umami script URL and website id come from PROD_* (job check, the production artifact) or TEST_* (build-test and the CSP check). One build per environment, it measures only on its own host. The CSP origins for Umami and Sentry come from the same variables. The build fails when a variable is empty. Tests use the production values from config/monitoringTestEnv.ts.
  • deploy-test: SSH key from the secret TEST_HOST_SSH_KEY (temporary file, chmod 600), no password, no sshpass.
  • verify-deployment.sh: the CMS host must offer Offerings and Hero (the old rule said Offerings must be off).
  • Docs: docs/deploy-and-ci.md has a table with the names.

Verified on ASF-test: run 886 (this branch, SSH key login) is green in all jobs, including the check after the deploy in CMS mode. This needed CMS PR 33 (frame-src without 'self' on the ASF host).

The old names (PI_MAIN_, DEPLOY_PATH_TEST, HEALTH_CHECK_URL_, FTP_*, ASF_OFFERINGS_URL_TEST) stay in the repo until Bryan removes them after this is merged and green. The production upload job still uses the FTPS script; rewriting it for plain FTP and the CMS host belongs to the IIS feature (feature/asf-production-iis).

Pipeline: the new names for repo variables and secrets (decision of Bryan, 2026-11-18), monitoring settings from the build environment, SSH key login to the Pi. - Names: TEST_DEPLOY_PATH, TEST_HEALTH_URL, PROD_HEALTH_URL, PROD_DEPLOY_PATH, PROD_HOST_* (FTP), TEST_HOST_* (SSH key). No OFFERINGS_URL in the test build any more (the host injects the data). No ASF_TEST_SERVED_BY_CMS: the check after the deploy always runs in CMS mode. - Monitoring: Sentry DSN, Umami script URL and website id come from PROD_* (job check, the production artifact) or TEST_* (build-test and the CSP check). One build per environment, it measures only on its own host. The CSP origins for Umami and Sentry come from the same variables. The build fails when a variable is empty. Tests use the production values from config/monitoringTestEnv.ts. - deploy-test: SSH key from the secret TEST_HOST_SSH_KEY (temporary file, chmod 600), no password, no sshpass. - verify-deployment.sh: the CMS host must offer Offerings and Hero (the old rule said Offerings must be off). - Docs: docs/deploy-and-ci.md has a table with the names. Verified on ASF-test: run 886 (this branch, SSH key login) is green in all jobs, including the check after the deploy in CMS mode. This needed CMS PR 33 (frame-src without 'self' on the ASF host). The old names (PI_MAIN_*, DEPLOY_PATH_TEST, HEALTH_CHECK_URL_*, FTP_*, ASF_OFFERINGS_URL_TEST) stay in the repo until Bryan removes them after this is merged and green. The production upload job still uses the FTPS script; rewriting it for plain FTP and the CMS host belongs to the IIS feature (feature/asf-production-iis).
Sluijsens added 4 commits 2026-11-18 21:09:21 +01:00
TEST_DEPLOY_PATH, TEST_HEALTH_URL, PROD_HEALTH_URL, PROD_DEPLOY_PATH and
PROD_HOST_* replace the old names (decision of Bryan, 2026-11-18). The test
build no longer fetches packages (the host injects them) and ASF_TEST_SERVED_BY_CMS
is gone: test is always served by the CMS host. PI_MAIN_* stay until the
TEST_HOST_* secrets and the SSH key exist.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
One build per environment: PROD_* variables for the production artifact,
TEST_* for the test build and the CSP check. The build fails when a variable
is empty. Tests use the production values from config/monitoringTestEnv.ts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The old rule said Offerings must be off for ASF; since the packages feature the
site needs it. The check was never run in CMS mode on ASF-test before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
deploy-test: SSH key login (TEST_HOST_*) instead of the PI_MAIN_* password with sshpass
Continuous Integration / check (pull_request) Successful in 2m24s
Continuous Integration / build-test (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 11m38s
Continuous Integration / deploy-production (pull_request) Skipped
2147fcec35
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sluijsens merged commit 39c2ae6024 into master 2026-11-18 21:23:45 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SLP_Software/AndreaSlopFotografie#23