11 lines
400 B
YAML
11 lines
400 B
YAML
pipeline:
|
|
deploy:
|
|
image: alpine/git
|
|
commands:
|
|
- cd /var/www/projects/test-web
|
|
- git config --global --add safe.directory /var/www/projects/test-web
|
|
- git remote set-url origin https://uzivibecode:${CI_FORGE_TOKEN}@git.sukabelajar.web.id/uzivibecode/test-web.git || true
|
|
- git fetch origin main
|
|
- git reset --hard origin/main
|
|
- echo "✅ Deploy selesai!"
|