Skip to content

KusStar/podate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •