Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ResamVi committed Oct 23, 2023
1 parent 0c69b27 commit d3a7696
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
envs: GITHUB_TOKEN
script: |
export GITHUB_TOKEN=$GITHUB_TOKEN
git clone [email protected]:ResamVi/awesome-java-stars.git repo
docker-compose -p awesomejava -f repo/docker-compose.yml down
docker-compose -p awesomejava -f repo/docker-compose.yml up --detach --build --force-recreate
rm -rf repo

0 comments on commit d3a7696

Please sign in to comment.