ci: use SSH URL for git clone in deploy (drop GITEA_TOKEN)
All checks were successful
deploy / deploy (push) Successful in 53s
All checks were successful
deploy / deploy (push) Successful in 53s
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
||||
run: |
|
||||
ssh -i ~/.ssh/id_deploy striker@web.hhivp.com bash -s <<'REMOTE'
|
||||
set -euo pipefail
|
||||
REPO_URL="https://${GITEA_USER}:${GITEA_TOKEN}@git.striker.su/striker/pushkinohistory-ru-v2.git"
|
||||
REPO_URL="ssh://git@git.striker.su:2222/striker/pushkinohistory-ru-v2.git"
|
||||
DEPLOY_PATH="/opt/docker/sites/pushkinohistory-ru-v2"
|
||||
HEALTH_URL="http://127.0.0.1:4146/"
|
||||
|
||||
@@ -49,6 +49,3 @@ jobs:
|
||||
curl -fsS -o /dev/null -w "HEALTH HTTP %{http_code}\n" "$HEALTH_URL"
|
||||
docker image prune -af --filter "until=168h" >/dev/null 2>&1 || true
|
||||
REMOTE
|
||||
env:
|
||||
GITEA_USER: striker
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user