pianello-web-app/.woodpecker/.build.yml
Alessio Davoli d321b6660c
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Use yarn instead
2023-05-31 18:01:23 +02:00

21 lines
785 B
YAML

pipeline:
build:
image: node:20.2.0-alpine3.16
secrets: [docker_password, docker_username]
commands:
# Install deps
- apk add docker docker-compose jq
# Build app
- yarn install --frozen-lockfile
- yarn build
# Log into docker registry
- echo "$${DOCKER_PASSWORD}" | docker login --password-stdin --username "$${DOCKER_USERNAME}" git.webdeploy.it
- echo "TAG=$(jq -r .version ./package.json)" >> .env
# Build image
- docker-compose -f docker-compose.build.yml build
- docker push git.webdeploy.it/pianello/pianello-web-app:latest
- docker push git.webdeploy.it/pianello/pianello-web-app:$(jq -r .version ./package.json)
volumes:
- /var/run/docker.sock:/var/run/docker.sock
branches: main