ci: simplify pipeline, remove auth for public repo
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -2,9 +2,9 @@ pipeline:
|
|||||||
deploy:
|
deploy:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- cd /var/www/projects/test-web
|
- cd ${DEPLOY_PATH}
|
||||||
- git config --global --add safe.directory /var/www/projects/test-web
|
- git config --global --add safe.directory ${DEPLOY_PATH}
|
||||||
- git remote set-url origin https://uzivibecode:${CI_FORGE_TOKEN}@git.sukabelajar.web.id/uzivibecode/test-web.git || true
|
- git remote set-url origin https://git.sukabelajar.web.id/${CI_REPO}.git || true
|
||||||
- git fetch origin main
|
- git fetch origin ${CI_COMMIT_BRANCH}
|
||||||
- git reset --hard origin/main
|
- git reset --hard origin/${CI_COMMIT_BRANCH}
|
||||||
- echo "✅ Deploy selesai!"
|
- echo "✅ Deploy ${CI_REPO_NAME} selesai!"
|
||||||
|
|||||||
Reference in New Issue
Block a user