Skip to content

Commit 7574816

Browse files
ci: fix reusable workflow api deploy
1 parent a7d622b commit 7574816

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/reusable-api-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Add remote host to known_hosts
3939
run: |
4040
mkdir -p ~/.ssh
41-
ssh-keyscan ${{ inputs.host }} >> ~/.ssh/known_hosts
41+
ssh-keyscan ${{ secrets.host }} >> ~/.ssh/known_hosts
4242
chmod 644 ~/.ssh/known_hosts
4343
shell: bash
4444

@@ -68,14 +68,14 @@ jobs:
6868
scp -o StrictHostKeyChecking=no \
6969
-i ~/.ssh/ghrunnerci \
7070
./api/docker-compose.yml ./.env \
71-
${{ inputs.host }}:/opt/iapp-api/
71+
${{ secrets.host }}:/opt/iapp-api/
7272
shell: bash
7373

7474
- name: Run Docker Compose on remote server
7575
run: |
7676
ssh -o StrictHostKeyChecking=no \
7777
-i ~/.ssh/ghrunnerci \
78-
${{ inputs.host }} << 'EOF'
78+
${{ secrets.host }} << 'EOF'
7979
cd /opt/iapp-api
8080
docker compose pull
8181
docker compose down --remove-orphans

0 commit comments

Comments
 (0)