ci: fix add secrets directive
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
deploy:
|
deploy:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
|
secrets: [ DEPLOY_PATH ]
|
||||||
commands:
|
commands:
|
||||||
- cd ${DEPLOY_PATH}
|
- cd $DEPLOY_PATH
|
||||||
- git config --global --add safe.directory ${DEPLOY_PATH}
|
- git config --global --add safe.directory $DEPLOY_PATH
|
||||||
- git remote set-url origin https://git.sukabelajar.web.id/${CI_REPO}.git || true
|
- git remote set-url origin https://git.sukabelajar.web.id/${CI_REPO}.git || true
|
||||||
- git fetch origin ${CI_COMMIT_BRANCH}
|
- git fetch origin ${CI_COMMIT_BRANCH}
|
||||||
- git reset --hard origin/${CI_COMMIT_BRANCH}
|
- git reset --hard origin/${CI_COMMIT_BRANCH}
|
||||||
|
|||||||
Reference in New Issue
Block a user