29 lines
No EOL
574 B
YAML
29 lines
No EOL
574 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: klakegg/hugo:0.101.0
|
|
commands:
|
|
- hugo build
|
|
- ls -la
|
|
- ls -lah public
|
|
- name: release
|
|
image: docker:git
|
|
commands:
|
|
- mkdir /tmp/webpage
|
|
- cp -R public/* /tmp/webpage
|
|
- git reset --hard main
|
|
- git checkout webpage
|
|
- rm -r -f *
|
|
- cp -R /tmp/webpage/* ./
|
|
- ls -lah
|
|
- name: git-push
|
|
image: appleboy/drone-git-push
|
|
settings:
|
|
branch: webpage
|
|
remote: git@git.keks.cloud:kekskurse/leuchttuerme-ostsee.git
|
|
force: false
|
|
commit: true
|
|
ssh_key:
|
|
from_secret: ssh_key |