parent
ac9033b243
commit
effe703078
1 changed files with 56 additions and 0 deletions
56
.forgejo/workflows/deploy-rs.yml
Normal file
56
.forgejo/workflows/deploy-rs.yml
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
name: ssh-test
|
||||||
|
run-name: ${{ github.actor }} - deploy-rs
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ssh-test:
|
||||||
|
runs-on: nixos
|
||||||
|
steps:
|
||||||
|
- name: "Runner: Info"
|
||||||
|
run: |
|
||||||
|
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: |
|
||||||
|
sudo tailscale status
|
||||||
|
sudo tailscale netcheck
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: "Directory Structure"
|
||||||
|
run: |
|
||||||
|
ls ${{ github.workspace }}/*
|
||||||
|
|
||||||
|
- name: "Nix Versions"
|
||||||
|
run: |
|
||||||
|
echo "nix --version"
|
||||||
|
nix --version
|
||||||
|
echo "nixos-Version"
|
||||||
|
nixos-version
|
||||||
|
|
||||||
|
- if: always()
|
||||||
|
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 }} ] Build Complete'
|
||||||
|
notification_message: 'Your build has completed.'
|
||||||
|
name: "Send Notification"
|
Loading…
Reference in a new issue