Refactor deployment steps in pipeline configuration
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
+9
-7
@@ -3,11 +3,13 @@ when:
|
||||
event: push
|
||||
|
||||
steps:
|
||||
deploy:
|
||||
image: docker:cli
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
validate:
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "Deploying ByteGeist portfolio"
|
||||
- docker restart bytegeist-portfolio
|
||||
- echo "Deploy complete"
|
||||
- test -f index.html
|
||||
- test -f style.css
|
||||
|
||||
deploy:
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "Portfolio deployment successful"
|
||||
Reference in New Issue
Block a user