fix(ci): mirror every successful production release
This commit is contained in:
parent
daa85d63a1
commit
d0fabf95b4
2 changed files with 4 additions and 4 deletions
|
|
@ -201,7 +201,7 @@ jobs:
|
||||||
run: rm -rf .ci
|
run: rm -rf .ci
|
||||||
|
|
||||||
mirror:
|
mirror:
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && vars.MIRROR_ENABLED == 'true'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
needs: deploy
|
needs: deploy
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,9 @@ Forgejo UI:
|
||||||
- `MIRROR_SSH_KEY`: private half of a write-enabled deploy key for
|
- `MIRROR_SSH_KEY`: private half of a write-enabled deploy key for
|
||||||
`git@github.com:Fi3w0/Nereus.git`.
|
`git@github.com:Fi3w0/Nereus.git`.
|
||||||
|
|
||||||
After registering that deploy key, set the Forgejo Actions repository variable
|
After registering that deploy key, every successful production deployment
|
||||||
`MIRROR_ENABLED` to `true`. The mirror job stays skipped until both sides
|
pushes `main` to GitHub automatically. An absent or invalid mirror credential
|
||||||
are configured, so an absent GitHub credential cannot break production deploys.
|
fails only the final mirror job, after production has already deployed.
|
||||||
|
|
||||||
Before the first sealed deployment, a cluster administrator must bootstrap the
|
Before the first sealed deployment, a cluster administrator must bootstrap the
|
||||||
deployer's namespaced SealedSecret permission:
|
deployer's namespaced SealedSecret permission:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue