nix/.forgejo/workflows/deploy-rs.yml
iFargle af8a20d293
Some checks failed
deploy-rs / deploy-rs (push) Failing after 0s
test
2023-12-25 13:20:10 +09:00

68 lines
No EOL
1.9 KiB
YAML

name: deploy-rs
run-name: ${{ github.actor }} - deploy-rs
on:
push:
branches:
- main
jobs:
deploy-rs:
runs-on: self-hosted
steps:
- name: "Runner: Info"
run: |
echo "============= PATH"
echo $PATH
echo "============= pwd"
pwd
echo "============= ls -lah"
ls -lah
echo '============= id'
id
echo "============= uname -a"
uname -a
echo "============= hostname"
hostname
echo "============= /etc/os-release"
cat /etc/os-release
echo "============= whoami"
whoami
id
echo "============= cat /etc/resolv.conf"
cat /etc/resolv.conf
- name: "Setup: Headscale"
run: |
echo "tailscale status"
tailscale status
echo "tailscale netcheck"
tailscale netcheck
- uses: actions/checkout@v3
- name: "Directory Structure"
run: |
ls -lah ${{ github.workspace }}/*
- name: "Nix Versions"
run: |
echo "nix --version"
nix --version
echo "nixos-Version"
nixos-version
- if: success()
uses: https://git.sysctl.io/actions/gotify-action@master
with:
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] NixOS Deployed'
notification_message: 'Deployment completed successfully.'
name: "Send Notification - Success"
- if: failure()
uses: https://git.sysctl.io/actions/gotify-action@master
with:
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
gotify_app_token: '${{ secrets.GOTIFY_TOKEN }}'
notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] Deployment Failed'
notification_message: 'Your deployment has failed. Check Forgejo.'
name: "Send Notification - Failure"