go back to local network deploy & upgrade node
All checks were successful
Deploy to Web Server / deploy (push) Successful in 1m37s
All checks were successful
Deploy to Web Server / deploy (push) Successful in 1m37s
This commit is contained in:
parent
a7bf919a3d
commit
1555212dbd
1 changed files with 8 additions and 22 deletions
|
@ -8,10 +8,9 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
# runs-on: WebDeployment
|
# runs-on: WebDeployment
|
||||||
runs-on: 9950x
|
runs-on: 3900x
|
||||||
container:
|
container:
|
||||||
image: docker.io/node:23-bookworm
|
image: docker.io/node:24-bookworm
|
||||||
options: --cap-add=NET_ADMIN --device=/dev/net/tun
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -24,7 +23,7 @@ jobs:
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: https://github.com/actions/setup-node@v4
|
uses: https://github.com/actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 23.11.0
|
node-version: 24
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
@ -40,38 +39,25 @@ jobs:
|
||||||
- name: Build website
|
- name: Build website
|
||||||
run: pnpm run build-action
|
run: pnpm run build-action
|
||||||
|
|
||||||
- name: Install Sudo
|
|
||||||
run: |
|
|
||||||
apt-get update && apt-get -y install sudo
|
|
||||||
|
|
||||||
# - name: Sudo group
|
|
||||||
# run: |
|
|
||||||
# groupmod -a -U $USER sudo
|
|
||||||
|
|
||||||
- name: Setup Tailscale
|
|
||||||
uses: https://github.com/tailscale/github-action@v3
|
|
||||||
with:
|
|
||||||
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
|
|
||||||
|
|
||||||
- name: Create folder if not exists
|
- name: Create folder if not exists
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST_TAILSCALE }} "mkdir -p /var/www/Aria/"
|
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /var/www/Aria/"
|
||||||
|
|
||||||
- name: Clear old backup
|
- name: Clear old backup
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST_TAILSCALE }} "[ -d "/var/www/Aria/dist-old" ] && rm -r /var/www/Aria/dist-old"
|
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "[ -d "/var/www/Aria/dist-old" ] && rm -r /var/www/Aria/dist-old"
|
||||||
|
|
||||||
- name: Backup current install
|
- name: Backup current install
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST_TAILSCALE }} "[ -d "/var/www/Aria/dist" ] && mv /var/www/Aria/dist /var/www/Aria/dist-old"
|
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "[ -d "/var/www/Aria/dist" ] && mv /var/www/Aria/dist /var/www/Aria/dist-old"
|
||||||
|
|
||||||
- name: Copy over new build-action
|
- name: Copy over new build-action
|
||||||
run: |
|
run: |
|
||||||
scp -i ~/.ssh/aria-coffee-deploy -rv ./dist ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST_TAILSCALE }}:/var/www/Aria
|
scp -i ~/.ssh/aria-coffee-deploy -rv ./dist ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }}:/var/www/Aria
|
||||||
|
|
||||||
- name: Set permissions on the deployed files
|
- name: Set permissions on the deployed files
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST_TAILSCALE }} "chmod -R 755 /var/www/Aria/dist"
|
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "chmod -R 755 /var/www/Aria/dist"
|
Loading…
Add table
Add a link
Reference in a new issue