Skip to content

Commit

Permalink
Fix error in pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
v0ctor committed Sep 2, 2023
1 parent c328482 commit 54a0f8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Extract binary
run: |
ID=$(docker create ${{ env.IMAGE }}:${{needs.build.outputs.TAG}} --entrypoint 'sleep infinity')
docker cp "${ID}:/usr/local/bin/bin" ./app
docker cp "${ID}:/usr/local/bin/bin" ./bin
docker rm --volumes "${ID}"
- name: Set up SSH
Expand All @@ -109,5 +109,6 @@ jobs:

- name: Deploy
run: |
scp -P 22001 ./app caddy@${{ secrets.WEB_HOST }}:/srv/avptp/brain
ssh caddy@${{ secrets.WEB_HOST }} -p 22001 sudo systemctl restart avptp-brain
ssh caddy@${{ secrets.WEB_HOST }} -p 22001 sudo systemctl stop avptp-brain
scp -P 22001 ./bin caddy@${{ secrets.WEB_HOST }}:/srv/avptp/brain
ssh caddy@${{ secrets.WEB_HOST }} -p 22001 sudo systemctl start avptp-brain

0 comments on commit 54a0f8d

Please sign in to comment.