Skip to content

Commit

Permalink
Update build-push.yml
Browse files Browse the repository at this point in the history
yybht155 authored Aug 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d7f7eb3 commit 303d994
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -68,7 +68,14 @@ jobs:
# - name: Release Images
# run: |
# curl -H "Authorization: Bearer ${{ secrets.UPDATE_DIFY_JP_TOKEN }}" ${{ secrets.UPDATE_DIFY_JP }}
- name: Release Images
run: |
echo ${{ secrets.PKEY }} > deploy.key
ssh -i deploy.key -o StrictHostKeyChecking=no ${{ secrets.DEPLOY }}@${{ secrets.ENDPOINT }} "pwd && echo 'test' > test.txt"
# - name: Release Images
# run: |
# echo ${{ secrets.PKEY }} > deploy.key
# ssh -i deploy.key -o StrictHostKeyChecking=no ${{ secrets.DEPLOY }}@${{ secrets.ENDPOINT }} "pwd && echo 'test' > test.txt"
- name: Run a command remotely
uses: docker://evaneos/ssh-action:0.1.0
with:
hosts: ${{ secrets.ENDPOINT }}
user: ${{ secrets.DEPLOY }}
private_key: ${{ secrets.PKEY }}
commands: pwd && echo 'test' > ~/test.txt

0 comments on commit 303d994

Please sign in to comment.