Update workflows
This commit is contained in:
parent
00217905a0
commit
fcf524b635
4 changed files with 8 additions and 7 deletions
|
@ -9,6 +9,7 @@ on:
|
|||
- '**/flake.lock'
|
||||
workflow_dispatch:
|
||||
env:
|
||||
SSH_HOST: "albert@warsaw-ovh-01.servers.hs.net"
|
||||
SSH_OPTS: "-q -A -o StrictHostKeyChecking=no"
|
||||
TS_OPTS: "--login-server=https://headscale.sysctl.io --accept-routes --accept-dns --hostname forgejo-runner"
|
||||
jobs:
|
||||
|
@ -41,13 +42,13 @@ jobs:
|
|||
- name: Restart Linode DERP Relay - Milan
|
||||
run: ssh ${{ env.SSH_OPTS }} albert@milan-linode-01.linode.hs.net "sudo systemctl restart podman-derp"
|
||||
- name: nixos-version (Pre)
|
||||
run: ssh ${{ env.SSH_OPTS }} albert@warsaw-ovh-01.servers.hs.net "nixos-version"
|
||||
run: ssh ${{ env.SSH_OPTS }} ${{ env.SSH_HOST }} "nixos-version"
|
||||
- name: Update Repository
|
||||
run: ssh ${{ env.SSH_OPTS }} albert@warsaw-ovh-01.servers.hs.net "git -C /etc/nixos/git pull"
|
||||
run: ssh ${{ env.SSH_OPTS }} ${{ env.SSH_HOST }} "git -C /etc/nixos/git pull"
|
||||
- name: deploy-rs
|
||||
run: ssh ${{ env.SSH_OPTS }} albert@warsaw-ovh-01.servers.hs.net "deploy -sd /etc/nixos/git"
|
||||
run: ssh ${{ env.SSH_OPTS }} ${{ env.SSH_HOST }} "deploy -sd /etc/nixos/git"
|
||||
- name: nixos-version (Post)
|
||||
run: ssh ${{ env.SSH_OPTS }} albert@warsaw-ovh-01.servers.hs.net "nixos-version"
|
||||
run: ssh ${{ env.SSH_OPTS }} ${{ env.SSH_HOST }} "nixos-version"
|
||||
- name: Send Notification
|
||||
uses: actions/gotify-action@master
|
||||
if: always()
|
||||
|
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
git config --global user.name '${{ github.actor }}'
|
||||
git commit -am "[${{ github.job }}] [ACT] Flake Lock Update"
|
||||
git push
|
||||
- name: Trigger Deploy Workflow
|
||||
- name: Dispatch Deploy Workflow
|
||||
if: success()
|
||||
run: |
|
||||
curl -X POST -v \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# yamllint disable rule:line-length rule:truthy
|
||||
---
|
||||
name: update-steamdeck
|
||||
S
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 26552d8bade6fa39188ebf68e9ffa1a8dcd75108
|
||||
Subproject commit 8ed82c9afaac6359cf4603196f7a5bd4b399a4b5
|
Loading…
Add table
Reference in a new issue