This commit is contained in:
parent
35e3ceab3f
commit
3ef54c5c71
3 changed files with 3 additions and 3 deletions
|
@ -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 ]
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue