Giter Club home page Giter Club logo

ci-cd-integration-with-nodejs's Introduction

update/install node version and check

1: curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
2: nvm install version

Github Actions CI/CD Intigration

1: in github project => actions
2: search nodejs app
3: configure nodejs app as yml file or
    a: create a directory as .github/workflows/node.js.yml
    b: push this code in github
4: go to setting => actions => runners
5: creat "self hosted runner" app
6: selet Runner image => like linux
7: complete all command for 
    a: Download
    b: Configure

    c not ./run.sh

8: sudo ./svc.sh install
9: sudo ./svc.sh start

faicing some error

1: initilly do not add run command;
2: node version did not install autometically
3: if any erro then go to details pages

Docs

1: https://www.youtube.com/watch?v=3jXtTSnA8zw

Deploy with pm2 tools

initial setup command if do not any cnange locla
   1: pm2 deploy devApi --force setup --env dev01
   2: pm2 deploy production setup

initial setup command if locla is any cange but nod commit then
    3: pm2 deploy devApi --force setup --env dev01

for run remote inatance and send params as key env
    4: pm2 deploy devApi --env dev01

reload application
    5: pm2 reload --update-env

exicution comand
        pm2 deploy production --force exec "pwd"


get every commit uniq key for tag versins
        git rev-parse --short HEAD


ssh key gen
        ssh-keygen -t ed25519 -C "[email protected]"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.