.woodpecker updated
This commit is contained in:
parent
6f0594f572
commit
7b91eaee8d
1 changed files with 26 additions and 10 deletions
|
@ -1,10 +1,26 @@
|
|||
steps:
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
|
||||
build:
|
||||
image: local/todoapp:latest
|
||||
commands:
|
||||
- echo "Building..."
|
||||
- podman build . -t todoapp
|
||||
a-test-step:
|
||||
image: debian
|
||||
commands:
|
||||
- echo "ran.."
|
||||
image: node:16-alpine
|
||||
script:
|
||||
- npm install
|
||||
- npm run build # Replace with your build command
|
||||
|
||||
test:
|
||||
image: node:16-alpine
|
||||
script:
|
||||
- npm install
|
||||
- npm run test # Replace with your test command
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
deploy:
|
||||
image: podman build . -t todoapp
|
||||
script:
|
||||
- podman rm -f todoapp # Remove old container (optional)
|
||||
- podman run -d -p 8989:8000 todoapp:latest
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue