Code Monkey home page Code Monkey logo

cd-server's Introduction

Convention

Trip Teknologi's Continuous Delivery and Continuous Deployment Server Convention.

Getting Started

How to use :

  • Optionally in your own running :
    ssh-keygen -t rsa -b 4096 -a 100 -o -f ~/.ssh/id_rsa.

  • Optionally in your own running :
    ssh-keyscan -t rsa -p <port> -H <host> >> ~/.ssh/known_hosts.

  • You need to publish your publickey to server's ~/.ssh/authorized_keys with running :
    ssh-copy-id -i ~/.ssh/id_rsa.pub -p <port> <user>@<host>.

  • You need to create a workflow in .github/workflows/.

    Sample file :

    name: Continuous Delivery and Continuous Deployment Server
    
    on: push
    
    jobs:
        cd:
            runs-on: ubuntu-latest
            steps:
                - uses: tripteki/[email protected]
                  with:
                    token: ${{ secrets.GITHUB_TOKEN }}
                    artifact: <artifact>.<extension>
                    type: ssh
                    host: ${{ secrets.SERVER_HOST }}
                    port: ${{ secrets.SERVER_PORT }}
                    user: ${{ secrets.SERVER_USER }}
                    privatekey: ${{ secrets.SERVER_PRIVATE_KEY }}
                    privatekey_passphrase: ${{ secrets.SERVER_PRIVATE_KEY_PASSPHRASE }}
                    path: "/var/www/codebase/"
                - uses: tripteki/[email protected]
                  with:
                    token: ${{ secrets.GITHUB_TOKEN }}
                    artifact: <artifact>.<extension>
                    type: command
                    host: ${{ secrets.SERVER_HOST }}
                    port: ${{ secrets.SERVER_PORT }}
                    user: ${{ secrets.SERVER_USER }}
                    privatekey: ${{ secrets.SERVER_PRIVATE_KEY }}
                    privatekey_passphrase: ${{ secrets.SERVER_PRIVATE_KEY_PASSPHRASE }}
                    script: |
                        APP_ENV=production ./bin/project -b -l -t -e -c
    
  • artifact section value possibilities :
    composer.json, package.json, pyproject.toml, etc.

  • type section value possibilities :
    ssh, command.

Author

cd-server's People

Contributors

hsbmaulana avatar

cd-server's Issues

Deploy

  • Playstore (.aab/.apk)
  • Appstore (.ipa)

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.