update

command
v2.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Update

Update is a small go http server and script which maintains a local server upto date.

Overview

  • main.go - is a small net/http server which handles updates

    • Runs on port :9000
    • Returns latest commit, release and image at GET /update
    • Processes webhook updates at POST /update
    • Calls update.sh when there are any git updates
  • update.sh - a small script which updates local code

    • pulls latest go-micro
    • pulls latest micro
    • calls /etc/init.d/micro restart

Usage

Setup webhooks in dockerhub and in github to point to your /update endpoint

Additionally set a github secret and pass via env var

GITHUB_WEBHOOK_SECRET=foobar go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL