diff --git a/.woodpecker.yml b/.woodpecker.yml index 34a0d6d..fe61720 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,13 +3,14 @@ when: event: push steps: - validate: - image: alpine - commands: - - test -f index.html - - test -f style.css - deploy: - image: alpine + image: alpine/git + volumes: + - /root/lab/bytegeist-portfolio/site:/live-site + - /var/run/docker.sock:/var/run/docker.sock commands: - - echo "Portfolio deployment successful" \ No newline at end of file + - cd /live-site + - git pull origin main + - docker restart bytegeist-portfolio + - git log -1 --oneline + - echo "Deploy complete"