.woodpecker updated

This commit is contained in:
Neovoid Pineapple 2024-01-31 09:34:12 +00:00
parent 6f0594f572
commit 7b91eaee8d

View file

@ -1,10 +1,26 @@
steps:
build:
image: local/todoapp:latest
commands:
- echo "Building..."
- podman build . -t todoapp
a-test-step:
image: debian
commands:
- echo "ran.."
stages:
- build
- test
- deploy
build:
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