Add Woodpecker configuration and Dockerfile for Node.js app deployment
ci/woodpecker/push/woodpecker Pipeline failed
Details
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
parent
aa8296239e
commit
9d51bf0357
|
@ -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
|
|
@ -0,0 +1,4 @@
|
||||||
|
ARG tag=18-alpine
|
||||||
|
FROM node:${image}
|
||||||
|
RUN yarn global add pm2
|
||||||
|
RUN pm2 install typescript
|
Loading…
Reference in New Issue