Fix path being overwritten in CI
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kayomn 2023-08-19 21:08:27 +01:00
parent 105298180e
commit 511542b03e
1 changed files with 9 additions and 3 deletions

View File

@ -3,8 +3,13 @@ type: docker
name: deploy name: deploy
steps: steps:
- name: build
image: ghcr.io/getzola/zola:v0.17.2
entrypoint: ["/bin/zola"]
command: ["build"]
- name: deploy - name: deploy
image: ubuntu:22.04 image: alpine:latest
environment: environment:
HOST: HOST:
from_secret: host from_secret: host
@ -12,10 +17,11 @@ steps:
from_secret: user from_secret: user
SSH_KEY: SSH_KEY:
from_secret: ssh_key from_secret: ssh_key
PATH: SITE_PATH:
from_secret: path from_secret: path
when: when:
branch: branch:
- main - main
commands: commands:
- cat /etc/os-release - apk update
- apk add openssh rsync