Create a pipeline for frontend application
This commit is contained in:
parent
96f35a2bcd
commit
d46affc17c
1 changed files with 19 additions and 0 deletions
19
.woodpecker.yml
Normal file
19
.woodpecker.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: docker:dind
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- docker build -t frontend:${CI_COMMIT_SHA:0:8} .
|
||||
- docker tag frontend:${CI_COMMIT_SHA:0:8} frontend:latest
|
||||
|
||||
deploy:
|
||||
image: docker:dind
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- docker stop frontend || true
|
||||
- docker rm frontend || true
|
||||
- docker run -d --name frontend -p 5137:5137 frontend:latest
|
||||
|
||||
branches: main
|
||||
Loading…
Add table
Add a link
Reference in a new issue