forked from Fediversity/Fediversity
add caching workflow
This commit is contained in:
parent
550f5cb584
commit
d9a20a1fa2
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/cache.yaml
Normal file
24
.forgejo/workflows/cache.yaml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: cache-build
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # allows manual triggering
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
# - main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: native
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up SSH key to access age secrets
|
||||||
|
run: |
|
||||||
|
env
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "${{ secrets.CD_SSH_KEY }}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
- run: attic login fediversity http://attic.fediversity.net:8080 ${{ secrets.ATTIC_PUSH_KEY }} && attic use demo && attic push demo $(nix-build)
|
Loading…
Add table
Reference in a new issue