Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup authored Jan 2, 2024
1 parent 84a9730 commit 5b4368d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: appleboy/ssh-action@master
with:
host: cdn.backmen.ru
username: root
username: buildbot
key: ${{ secrets.BACKMEN_BUILDS_PUSH_KEY }}
script: |
if [ -d "/opt/builds/${{ github.sha }}" ]
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
uses: appleboy/scp-action@master
with:
host: cdn.backmen.ru
username: root
username: buildbot
key: ${{ secrets.BACKMEN_BUILDS_PUSH_KEY }}
source: "release/${{ github.sha }}"
target: "/opt/builds/"
Expand All @@ -79,14 +79,14 @@ jobs:
uses: appleboy/ssh-action@master
with:
host: cdn.backmen.ru
username: root
username: buildbot
key: ${{ secrets.BACKMEN_BUILDS_PUSH_KEY }}
script: "curl -X POST -d \"\" -H 'Authorization: Bearer ${{ secrets.CDN_TOKEN }}' http://localhost:5001/control/update"

- name: Update manifest JSON
uses: appleboy/ssh-action@master
with:
host: cdn.backmen.ru
username: root
username: buildbot
key: ${{ secrets.BACKMEN_BUILDS_PUSH_KEY }}
script: "python3 /opt/push.py"

0 comments on commit 5b4368d

Please sign in to comment.