mirror of
https://github.com/sp-tarkov/db-website.git
synced 2025-02-08 02:30:45 -05:00
Updates Deploy Script
This commit is contained in:
parent
0baed15af0
commit
26d6a54968
@ -2,35 +2,35 @@ name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: /workspace/SPT-AKI/DB-Website
|
||||
fetch-depth: 0
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: /workspace/SPT/DB-Website
|
||||
fetch-depth: 0
|
||||
|
||||
- name: List files
|
||||
run: ls -lah
|
||||
shell: bash
|
||||
with:
|
||||
path: /workspace/SPT-AKI/DB-Website
|
||||
- name: List files
|
||||
run: ls -lah
|
||||
shell: bash
|
||||
with:
|
||||
path: /workspace/SPT/DB-Website
|
||||
|
||||
- name: Setup known_hosts
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
|
||||
- name: Setup known_hosts
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
|
||||
|
||||
- name: Setup SSH key
|
||||
uses: webfactory/ssh-agent@v0.9.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
- name: Setup SSH key
|
||||
uses: webfactory/ssh-agent@v0.9.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
- name: Push to production
|
||||
run: |
|
||||
git remote add deploy ssh://dbwebsite@51.195.101.201/home/dbwebsite/DB-Website.git
|
||||
git push deploy main:main
|
||||
- name: Push to production
|
||||
run: |
|
||||
git remote add deploy ssh://dbwebsite@51.195.101.201/home/dbwebsite/DB-Website.git
|
||||
git push deploy main:main
|
||||
|
Loading…
x
Reference in New Issue
Block a user