Composite Action docker-deploy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
36e78cd400
2 files changed
+108
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# deploy-action
|
||||
|
||||
Composite Action für Gitea Actions: synchronisiert das Repo per rsync nach `~/deployment`
|
||||
auf dem Zielserver und startet dort `docker-deploy.sh deploy`.
|
||||
|
||||
Das Repo muss **öffentlich** sein, weil der Runner Actions anonym klont.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://git.share-fix.de/jochen/deploy-action@v1.0.0
|
||||
with:
|
||||
deploy_user: ${{ vars.deploy_user }}
|
||||
deploy_host: ${{ vars.deploy_host }}
|
||||
deploy_pass: ${{ secrets.deploy_pass }}
|
||||
```
|
||||
|
||||
Das vollständige Beispiel-Workflow liegt in `admin-toolsuite/examples/deploy.yml`;
|
||||
`create-deploy-user.py` legt es im Service-Repo an und setzt Variablen und Secret.
|
||||
|
||||
## Inputs
|
||||
|
||||
| Input | Pflicht | Beschreibung |
|
||||
|---|---|---|
|
||||
| `deploy_user` | ja | Deploy-User auf dem Zielserver |
|
||||
| `deploy_host` | ja | Hostname des Zielservers |
|
||||
| `deploy_pass` | ja | Passwort/App-Token des Deploy-Users |
|
||||
| `compose_file` | nein | Compose-Datei zur Validierung (Standard `docker-compose.yml`) |
|
||||
|
||||
## Releases
|
||||
|
||||
Semver-Tags (`v1.0.0`, …). Renovate bumpt den Tag in den Service-Repos per PR.
|
||||
Reference in new issue
Block a user