debug: ssh key
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2023-02-13 16:50:36 +05:30
parent 35e3ceab3f
commit 3ef54c5c71
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
3 changed files with 3 additions and 3 deletions

View file

@ -9,4 +9,4 @@ pipeline:
- make env - make env
- make - make
- make ci-deploy - make ci-deploy
secrets: [ GITEA_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET ] secrets: [ FORGEJO_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET ]

View file

@ -10,6 +10,7 @@ ci-deploy: ## Deploy from CI/CD. Only call from within CI
git config --global user.name "${CI_COMMIT_AUTHOR}" git config --global user.name "${CI_COMMIT_AUTHOR}"
./scripts/hugo.sh deploy librepages public "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>" ./scripts/hugo.sh deploy librepages public "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>"
./scripts/ci.sh --init "$$FORGEJO_WRITE_DEPLOY_KEY" ./scripts/ci.sh --init "$$FORGEJO_WRITE_DEPLOY_KEY"
cat /tmp/ci-ssh-id
./scripts/ci.sh --deploy ${LIBREPAGES_DEPLOY_SECRET} librepages ./scripts/ci.sh --deploy ${LIBREPAGES_DEPLOY_SECRET} librepages
./scripts/ci.sh --clean ./scripts/ci.sh --clean

View file

@ -56,8 +56,7 @@ set_ssh_remote() {
remote_hostname=$(echo $http_remote_url | cut -d '/' -f 3) remote_hostname=$(echo $http_remote_url | cut -d '/' -f 3)
repository_owner=$(echo $http_remote_url | cut -d '/' -f 4) repository_owner=$(echo $http_remote_url | cut -d '/' -f 4)
repository_name=$(echo $http_remote_url | cut -d '/' -f 5) repository_name=$(echo $http_remote_url | cut -d '/' -f 5)
ssh_remote="git@$remote_hostname:$repository_owner/$repository_name" ssh_remote="git@git.batsense.net:mcaptcha/website.git"
ssh_remote="git@git.batsense.net:mCaptcha/website.git"
git remote add $SSH_REMOTE_NAME $ssh_remote git remote add $SSH_REMOTE_NAME $ssh_remote
} }