leuchttuerme-ostsee/.drone.yml

30 lines
595 B
YAML
Raw Permalink 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 15:07:39 +00:00
- git reset --hard main
2022-10-14 15:08:56 +00:00
- git fetch origin
2022-10-14 14:22:14 +00:00
- git checkout 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
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