Update .forgejo/workflows/deploy.yaml
This commit is contained in:
parent
7ecab4ed4b
commit
a5a5347525
1 changed files with 15 additions and 14 deletions
|
@ -4,23 +4,24 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs_on: docker
|
runs_on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: "Cache Nix store"
|
# - name: "Cache Nix store"
|
||||||
uses: actions/cache@v3.0.8
|
# uses: actions/cache@v3.0.8
|
||||||
id: nix-cache
|
# id: nix-cache
|
||||||
with:
|
# with:
|
||||||
path: /tmp/nixcache
|
# path: /tmp/nixcache
|
||||||
key: "${{ runner.os }}-nix-cache"
|
# key: "${{ runner.os }}-nix-cache"
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
- uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
- uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
||||||
- name: "Import Nix store cache"
|
# - name: "Import Nix store cache"
|
||||||
if: "steps.nix-cache.outputs.cache-hit == 'true'"
|
# if: "steps.nix-cache.outputs.cache-hit == 'true'"
|
||||||
run: "nix-store --import < /tmp/nixcache"
|
# run: "nix-store --import < /tmp/nixcache"
|
||||||
- uses: https://github.com/LuisEnMarroquin/setup-ssh-action@v2.0.5
|
- run: mkdir -q ~/.ssh; echo "$SSHKEY" > id_ed25519
|
||||||
|
name: "Setup ssh key"
|
||||||
with:
|
with:
|
||||||
SSHKEY: ${{ secrets.DEPLOYKEY }}
|
SSHKEY: ${{ secrets.DEPLOYKEY }}
|
||||||
- run: 'nix develop --command deploy .'
|
- run: 'nix develop --command deploy --remote-build root@zeus .'
|
||||||
- name: "Export Nix store cache"
|
# - name: "Export Nix store cache"
|
||||||
if: "steps.nix-cache.outputs.cache-hit != 'true'"
|
# if: "steps.nix-cache.outputs.cache-hit != 'true'"
|
||||||
run: "nix-store --export $(find /nix/store -maxdepth 1 -name '*-*') > /tmp/nixcache"
|
# run: "nix-store --export $(find /nix/store -maxdepth 1 -name '*-*') > /tmp/nixcache"
|
Loading…
Reference in a new issue