KusStar / podate

Podman auto-update hook server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Podate

Podman auto-update hook server

Usage

NOTE: Firstly, You need to install podman and setup podman auto-date for your service.

Recommend use pm2 to manage your sever process.

# Clone the repo
$ git clone https://github.com/KusStar/podate
$ cd podate
# Run
$ export PODATE_TOKEN="Bearer podate"
$ pm2 start server.js

NOTE: Setup pm2 env also can through ecosystem.config.js

// ecosystem.config.js
module.exports = {
  apps : [{
    name   : "podate",
    script : "./server.js",
    env: {
      PODATE_TOKEN: "Bearer podate",
    },
    env_production: {
      PODATE_TOKEN: "Bearer podate",
    }
  }]
}
$ curl -H "Authorization: Bearer podate" ${YOUR_DEPLOYED_SERVER_HOST}/hook

Then it will run $ podman auto-update on your host server.

Env

PORT

Server Port. Defaults to 9999

PODATE_TOKEN

/hook authorization, defaults to undefined, no settle.

LICENSE

MIT

About

Podman auto-update hook server

License:MIT License


Languages

Language:JavaScript 67.7%Language:EJS 32.3%