Compare commits
1
Commits
f7bc29169c
..
backup
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50f34a7de1 |
No files matched your search
@@ -18,7 +18,7 @@ jobs:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- uses: docker/login-action@v4
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.studiovita.li
|
registry: git.studiovita.li
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
# studiovitali/actions
|
|
||||||
|
|
||||||
Shared Gitea Actions for studio CI workflows.
|
|
||||||
|
|
||||||
## Composite actions
|
|
||||||
|
|
||||||
- **[`sops`](sops/)** — install checksum-verified SOPS and decrypt `*.sops.*` files with an age key
|
|
||||||
- **[`ssh-copy`](ssh-copy/)** — `rsync` a local directory to a remote host over SSH
|
|
||||||
- **[`ssh-run`](ssh-run/)** — run a script on a remote host over SSH
|
|
||||||
|
|
||||||
Reference a local action from a workflow:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- uses: studio/actions/ssh-run@main
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.HOST }}
|
|
||||||
user: deploy
|
|
||||||
key: ${{ secrets.SSH_KEY }}
|
|
||||||
script: ./deploy.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## Runner image
|
|
||||||
|
|
||||||
`images/act` builds `git.studiovita.li/studio/actions:ubuntu-latest` from the Gitea
|
|
||||||
runner image, adding `rsync` and SOPS. Built weekly and on `images/**` changes via
|
|
||||||
[`.gitea/workflows/build.yml`](.gitea/workflows/build.yml).
|
|
||||||
|
|
||||||
## Maintenance
|
|
||||||
|
|
||||||
Dependencies pinned in `action.yml` / `Dockerfile` are updated by [Renovate](renovate.json)
|
|
||||||
using `## renovate:` annotations.
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
name: backup
|
||||||
|
description: backup all postgres databases
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: dump databases
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
docker ps
|
||||||
|
|
||||||
|
# - name: backup databases
|
||||||
|
# run: |
|
||||||
Reference in new issue
Block a user