Exercise the deployment playbook in CI #16

Merged
2franix merged 14 commits from check_perms_in_ci into main 2025-01-21 22:04:23 +01:00
Owner

It would be nice to detect errors in deployment prior to merging PRs.

For example, permissions in .perms.yaml may be wrong.

This is an attempt at running most of the deployment playbook during a CI build.

It would be nice to detect errors in deployment prior to merging PRs. For example, permissions in `.perms.yaml` may be wrong. This is an attempt at running most of the deployment playbook during a CI build.
Use dry run and temp devops playbook
All checks were successful
CI / Lint and format files (pull_request) Successful in 34s
8ba05f705d
@ -41,2 +41,3 @@
repository: self-hosting/devops
ref: main
#ref: main
ref: d6036c44f2b5375a2ae6f89775183fdf1e549b1f
Author
Owner

CAUTION, do not merge until this is replaced by main!

CAUTION, do not merge until this is replaced by `main`!
2franix marked this conversation as resolved
Install ansible
All checks were successful
CI / Lint and format files (pull_request) Successful in 33s
7a1b2cad99
Fix path to playbook
All checks were successful
CI / Lint and format files (pull_request) Successful in 35s
6b645c824d
Use multiline string to run playbook
Some checks failed
CI / Lint and format files (pull_request) Failing after 12s
798bc24809
Add debug print
All checks were successful
CI / Lint and format files (pull_request) Successful in 11s
81b53f852e
Fix repo URL
All checks were successful
CI / Lint and format files (pull_request) Successful in 10s
ddefaf108d
Fix syntax
All checks were successful
CI / Lint and format files (pull_request) Successful in 11s
2100c09dfd
Change ref name
All checks were successful
CI / Lint and format files (pull_request) Successful in 48s
7bdd6792b9
Use sha instead of branch name
All checks were successful
CI / Lint and format files (pull_request) Successful in 10s
6d74dff129
Skip initial clone
All checks were successful
CI / Lint and format files (pull_request) Successful in 12s
381900a67a
This is unnecessary and even causes ansible to not attempt a clone =>
the SHA is then not found.
Use refspec
All checks were successful
CI / Lint and format files (pull_request) Successful in 33s
3b222ffa3d
Clone in absolute directory
All checks were successful
CI / Lint and format files (pull_request) Successful in 28s
07ef32337f
Finalize: use devops' main again
All checks were successful
CI / Lint and format files (pull_request) Successful in 36s
92591eea67
2franix deleted branch check_perms_in_ci 2025-01-21 22:04:23 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: self-hosting/workflows#16
No description provided.