Skip to content

orochi-network/dev-off

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

120 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-off

Easy develove <3 Orochi Network

Check GPG for all commits in a given PR

You can set BASE_REVISION environment variable to specify a version of the given script

curl -sL https://raw.githubusercontent.com/orochi-network/dev-off/main/check-gpg.sh | bash

Docker template

Docker template help our CI/CD alway up to date

Requirement

All repo must include ./scripts/build-prod.sh, this will be used to build for building images.

Node.js Application

  • -t | --template: Template to use, now we support node, next, nginx and strapi
    • node: Using for Node.js application
    • next: Using for Next.js application
    • nginx: Using for React.js application or static website
    • strapi: Using for Strapi headless CMS (glibc runner node:22-trixie-slim, EXPOSE 1337)
  • -f | --file: Selected file to copy
  • -c | --command: Command to be executed, default to ["npm", "start"]
curl -sL https://raw.githubusercontent.com/orochi-network/dev-off/main/dockerfile.sh | bash -- -t node -f package.json -f node_modules -f build -c "[\"yarn\", \"start\"]"

Static website

Build result MUST be in ./build

curl -sL https://raw.githubusercontent.com/orochi-network/dev-off/main/dockerfile.sh | bash -- -t nginx

About

Easy develove <3 Orochi Network

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages