Skip to content

Commit

Permalink
update workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
heinpa committed Jun 28, 2024
1 parent 60e1388 commit 5731e95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Prepare deployment
run: bash -c ./service_config/prepare_deployment.sh ./service_config/service_config.json
run: bash -c ./service_config/prepare_deployment.sh
- name: "Deploy on DINO"
id: generate
if: ${{ env.TARGET == 'DINO' }}
run: bash -c ./service_config/generate_deployment_script.sh
run: bash -c ./service_config/generate_deployment_script.sh ./service_config/service_config.json
- uses: appleboy/scp-action@master
id: copy
if: steps.generate.outcome == 'success'
Expand All @@ -28,10 +28,9 @@ jobs:
port : ${{ secrets.SERVER_PORT }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
source: "service_config/deploy_components.sh"
source: "deploy_components.sh"
target: "."
overwrite: true
strip_components: 1
- uses: appleboy/ssh-action@master
if: steps.generate.outcome == 'success'
with:
Expand Down
2 changes: 1 addition & 1 deletion service_config/generate_deployment_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

env_files=$ENV_FILES

outfile="service_config/deploy_components.sh"
outfile="deploy_components.sh"
echo "#!/bin/bash" > $outfile

file=$1
Expand Down

0 comments on commit 5731e95

Please sign in to comment.