This commit is contained in:
+9
-8
@@ -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"
|
||||
- cd /live-site
|
||||
- git pull origin main
|
||||
- docker restart bytegeist-portfolio
|
||||
- git log -1 --oneline
|
||||
- echo "Deploy complete"
|
||||
|
||||
Reference in New Issue
Block a user