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
|
event: push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
deploy:
|
validate:
|
||||||
image: docker:cli
|
image: alpine
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
commands:
|
commands:
|
||||||
- echo "Deploying ByteGeist portfolio"
|
- test -f index.html
|
||||||
- docker restart bytegeist-portfolio
|
- test -f style.css
|
||||||
- echo "Deploy complete"
|
|
||||||
|
deploy:
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- echo "Portfolio deployment successful"
|
||||||
Reference in New Issue
Block a user