1
0
Fork 0

Add Woodpecker configuration and Dockerfile for Node.js app deployment
ci/woodpecker/push/woodpecker Pipeline failed Details

Added a .woodpecker.yml file to configure the build matrix, pipeline, and Docker image settings for deploying a Node.js app. Also added a Dockerfile that installs pm2 and typescript globally.
main
naicoi 2023-05-18 00:43:00 +07:00
parent aa8296239e
commit 9d51bf0357
Signed by: naicoi
GPG Key ID: 7142E472DF7CF7D9
2 changed files with 31 additions and 0 deletions

27
.woodpecker.yml Normal file
View File

@ -0,0 +1,27 @@
matrix:
platform:
- linux/amd64
- linux/arm64
os:
- alpine
- ubuntu
version:
- 16
- 18
- 20
platform: ${platform}
pipeline:
build:
image: plugins/docker
settings:
registry: techio.dev
repo: techio.dev/${CI_REPO}
tags:
- ${version}-${os}
build_args:
- tag=${version}-${os}
username: deploy
password:
from_secret: deploy_password

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
ARG tag=18-alpine
FROM node:${image}
RUN yarn global add pm2
RUN pm2 install typescript