leuchttuerme-ostsee/.drone.yml

30 lines
608 B
YAML
Raw Normal View History

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:37:19 +00:00
- git pull origin webpage --rebase
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
2022-10-14 14:28:23 +00:00
- name: git-push
image: appleboy/drone-git-push
settings:
branch: webpage
remote: git@git.keks.cloud:kekskurse/leuchttuerme-ostsee.git
force: false
2022-10-14 14:33:07 +00:00
commit: true
ssh_key:
from_secret: ssh_key