Skip to content

Commit

Permalink
Fix prod ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrodamasio committed Jul 17, 2023
1 parent 69ed969 commit f298447
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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 }}
Expand All @@ -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"
2 changes: 1 addition & 1 deletion frontends/web/src/screens/LoggedHomeScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function LoggedHomeScreen() {
<Tab eventKey="1" title="Control Panel">
<h1>Command Button</h1>
<CommandButton />
<h1>Star new operation</h1>
<h1>Start new operation</h1>
<StartNewOperation />
<h1>Manage position</h1>
<ManagePosition />
Expand Down

0 comments on commit f298447

Please sign in to comment.