2022-10-14 14:11:06 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: klakegg/hugo:0.101.0
|
|
|
|
commands:
|
|
|
|
- hugo build
|
|
|
|
- ls -la
|
2022-10-14 14:19:42 +00:00
|
|
|
- ls -lah public
|
|
|
|
- name: release
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- mkdir /tmp/webpage
|
|
|
|
- cp -R public/* /tmp/webpage
|
2022-10-14 14:21:21 +00:00
|
|
|
- git branch webpage
|
2022-10-14 14:22:14 +00:00
|
|
|
- git checkout webpage
|
2022-10-14 14:22:36 +00:00
|
|
|
- #git pull origin webpage
|
2022-10-14 14:19:42 +00:00
|
|
|
- rm -r -f *
|
|
|
|
- cp -R /tmp/webpage/* ./
|
2022-10-14 14:23:16 +00:00
|
|
|
- ls -lah
|
|
|
|
- git add .
|
|
|
|
- git commit -m "Drone" .
|
|
|
|
- git pus origin webpage
|