Giter Club home page Giter Club logo

ploi-deploy-action's Introduction

Ploi Deploy Action

Deploy your application to Ploi with Github actions. This action supports both the Deploy webhook URL found in the site repository tab and API based deployment.

Inputs

Webhook deployment

webhook_url

Required Deploy webhook URL. It is advised to use Github secrets to keep your webhook URL private.

The webhook url can be found in your sites Repository tab.

API deployment

api_token

Required Ploi API token. It is advised to use Github secrets to keep your API token private.

The API token can be found in Profile -> API keys.

server_id

Required Ploi Server ID.

Server ID can be found in your servers Settings tab.

site_id

Required Ploi Site ID.

Site ID can be found in your sites Settings tab.

Basic workflows

Webhook deployment

name: 'Deploy on push'

on:
  push:
    branches:
      - master

jobs:
  ploi-deploy:
    name: 'Ploi Deploy'
    runs-on: ubuntu-latest

    steps:
      # Checkout the repository to the GitHub Actions runner
      - name: Checkout
        uses: actions/checkout@v2

      # Trigger Ploi deploy webhook
      - name: Deploy
        uses: Glennmen/[email protected]
        with:
          webhook_url: ${{ secrets.WEBHOOK_URL }}

API deployment

name: 'Deploy on push'

on:
  push:
    branches:
      - master

jobs:
  ploi-deploy:
    name: 'Ploi Deploy'
    runs-on: ubuntu-latest

    steps:
      # Checkout the repository to the GitHub Actions runner
      - name: Checkout
        uses: actions/checkout@v2

      # Trigger Ploi deploy api
      - name: Deploy
        uses: Glennmen/[email protected]
        with:
          api_token: ${{ secrets.API_TOKEN }}
          server_id: 1
          site_id: 1

Advanced workflows

You can find some common workflows in the example's directory.

Future updates

  • Add API based deploy
    • Flush FastCGI cache
    • Restart daemon
    • Restart service
    • Refresh OPCache

Other suggestions are welcome, please make an issue.

ploi-deploy-action's People

Contributors

dependabot[bot] avatar glennmen avatar

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.