This commit is contained in:
parent
04254fbc30
commit
c8d65ccb92
1 changed files with 6 additions and 7 deletions
|
|
@ -21,13 +21,12 @@ steps:
|
||||||
deploy-site:
|
deploy-site:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- cd /woodpecker/src/git.polarolouis.fr/polarolouis/site-perso/public
|
- cd /woodpecker/src/git.polarolouis.fr/polarolouis/
|
||||||
- git init
|
- git clone "$DEPOT_PAGES"
|
||||||
- git config --global init.defaultBranch main
|
- rm -Rf "$DEPOT_PAGES/*"
|
||||||
- git config user.name "CI Bot"
|
- cp -r site-perso/* "$DEPOT_PAGES/"
|
||||||
- git config user.email "ci@example.com"
|
- cd "$DEPOT_PAGES"
|
||||||
- git remote add origin "$DEPOT_PAGES"
|
- git config user.name "Woodpecker CI"
|
||||||
- git add .
|
|
||||||
- git commit -m "Deploy site"
|
- git commit -m "Deploy site"
|
||||||
- git push -f origin main
|
- git push -f origin main
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue