Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50f34a7de1 |
No files matched your search
@@ -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: |
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
## renovate: datasource=docker depName=docker.gitea.com/runner-images
|
## renovate: datasource=docker depName=docker.gitea.com/runner-images
|
||||||
FROM docker.gitea.com/runner-images:ubuntu-latest@sha256:30ad0c51af70f33f852a760ed9b94fc01a537d4eb8d57258ae94be5aae7ceefd
|
FROM docker.gitea.com/runner-images:ubuntu-latest@sha256:0e62e56b382ebf485bff1e51a05cbe27c708545a2e91425467fd31eb3e249521
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
|
|||||||
Reference in new issue
Block a user