Skip to content

Commit

Permalink
ci: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
BrooksYang committed Mar 17, 2024
1 parent f8b107d commit 52daef0
Showing 1 changed file with 1 addition and 44 deletions.
45 changes: 1 addition & 44 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,47 +104,4 @@ jobs:
ls -l
- name: Deploy
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.REMOTE_KEY }}
script: bash ./scripts/docker/deploy.sh ${{ env.VERSION }} ${{ secrets.REMOTE_USER }} ${{ secrets.REMOTE_HOST }} ${{ secrets.REMOTE_KEY }}

# - name: Deploy
# uses: appleboy/scp-action@v0.1.7
# with:
# host: ${{ secrets.REMOTE_HOST }}
# username: ${{ secrets.REMOTE_USER }}
# key: ${{ secrets.REMOTE_KEY }}
# source: "./*"
# target: "/tmp"
#
# - name: Run
# uses: appleboy/ssh-action@v1.0.3
# with:
# host: ${{ secrets.REMOTE_HOST }}
# username: ${{ secrets.REMOTE_USER }}
# key: ${{ secrets.REMOTE_KEY }}
# script: |
# mkdir -p /opt/bingo
# cd /opt/bingo
#
# rsync -a /tmp/build/docker/* ./
# rsync -a /tmp/build/docker/.env.example ./
# if [ ! -f .env ]; then
# cp .env.example .env
# fi
# if [ ! -f config/bingo-apiserver.yaml ]; then
# cp config/bingo-apiserver.example.yaml config/bingo-apiserver.yaml
# fi
#
# # Update app version by .env
# sed -i 's/APP_VERSION=.*/APP_VERSION=${{ env.VERSION }}/g' .env
#
# docker load < /tmp/bingo-apiserver.tar.gz
# docker-compose up -d
#
# rm -rf /tmp/build
# rm /tmp/bingo-apiserver.tar.gz
# rm config/bingo-apiserver.example.yaml
run: bash ./scripts/docker/deploy.sh ${{ env.VERSION }} ${{ secrets.REMOTE_USER }} ${{ secrets.REMOTE_HOST }} ${{ secrets.REMOTE_KEY }}

0 comments on commit 52daef0

Please sign in to comment.