-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69ed969
commit f298447
Showing
2 changed files
with
14 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Create SSH key | ||
- name: Create ssh key | ||
shell: bash | ||
env: | ||
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}} | ||
|
@@ -21,7 +21,7 @@ jobs: | |
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts | ||
- uses: actions/checkout@v3 | ||
- name: copy file via ssh password | ||
- name: Copy file via ssh key | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
|
@@ -31,18 +31,14 @@ jobs: | |
source: "README.md,LICENSE,main.c,.gitignore,.github,docker-compose.yml,frontends,backends" | ||
target: ~/apps/rbs/src | ||
|
||
|
||
|
||
# - name: Executing remote command | ||
# uses: appleboy/ssh-action@master | ||
# env: | ||
# APP_PATH: ${{ secrets.APP_PATH }} | ||
# with: | ||
# host: ${{ secrets.HOST }} | ||
# username: ${{ secrets.USERNAME }} | ||
# port: ${{ secrets.PORT }} | ||
# key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
# script: | | ||
# scp . "${USERNAME}@${HOST}:~/apps/rbs/src" | ||
# ls -la ~/apps/rbs/src | ||
# echo "Deploy finalizado" | ||
- name: Executing docker-compose remote script | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
port: ${{ secrets.PORT }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
script: | | ||
cd ~/apps/rbs/src" | ||
sudo docker-compose up -d --build | ||
echo "Deploy finalizado" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters