Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22f670a7bf | ||
|
|
760b4cdcae | ||
|
|
5f0c3b1306 | ||
|
|
598259ae9b | ||
|
|
c8d0506315 |
No files matched your search
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- uses: docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.studiovita.li
|
registry: git.studiovita.li
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
- uses: docker/build-push-action@v6
|
- uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
# 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.
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
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:0e62e56b382ebf485bff1e51a05cbe27c708545a2e91425467fd31eb3e249521
|
FROM docker.gitea.com/runner-images:ubuntu-latest@sha256:30ad0c51af70f33f852a760ed9b94fc01a537d4eb8d57258ae94be5aae7ceefd
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
|
|||||||
Reference in new issue
Block a user