Skip to content

Commit 1a50446

Browse files
committed
Change service
1 parent 35b0021 commit 1a50446

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

.github/workflows/github-actions-push-image.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,6 @@ jobs:
6464
subject-digest: ${{ steps.push.outputs.digest }}
6565
push-to-registry: true
6666

67-
- name: Restart service
68-
run: |
69-
wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O /usr/local/bin/cloudflared &&
70-
chmod +x /usr/local/bin/cloudflared &&
71-
mkdir ~/.ssh/ &&
72-
echo "${{ secrets.GIT_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 &&
73-
chmod 600 ~/.ssh/id_ed25519 &&
74-
ssh -o "StrictHostKeyChecking no" -o ProxyCommand="/usr/local/bin/cloudflared access ssh --hostname %h" -i ~/.ssh/id_ed25519 ${{ secrets.GIT_USERNAME }}@${{ secrets.GIT_REMOTE_HOST }} sudo systemctl restart ${{ secrets.GIT_REMOTE_SERVICE }}
75-
7667
- name: Push changes
7768
run: |
7869
wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O /usr/local/bin/cloudflared &&

0 commit comments

Comments
 (0)