GitXplorerGitXplorer
a

waypoint-plugin-digitalocean

public
5 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
a39694ca54a5283c8f6cec8e301beb5432edbfae

Update README.md

aandrewsomething committed 4 years ago
Unverified
bd576e8aca812c133d78e1c018c1464b1be1abca

Make sure we have the active deployment.

aandrewsomething committed 4 years ago
Unverified
fcef0acb54c7d60d7860c30d80afe27da3669b20

Update README.

aandrewsomething committed 4 years ago
Unverified
8b2f4b9ec230b7cf288d3acefd8170a4251538ba

Update README.

aandrewsomething committed 4 years ago
Unverified
d974e4d192bb1dbf2d827ddbd1abb5695425e603

Fix Dockerfile.

aandrewsomething committed 4 years ago
Unverified
3d5fbab255fa1842f524efa8212188c9942ed589

Inital delpoyment work.

aandrewsomething committed 4 years ago

README

The README file for this repository.

DigitalOcean Waypoint Plugin

This is a prototype DigitalOcean Waypoint plugin. It currently has very basic support for deploying a Docker image from a DigitalOcean Container Registry to DigitalOcean App Platform. It should be considered experimental.

See the Waypoint documentation on installing external plugins for more detail on installing external plugins.

Configuration

A Waypoint configuration of this might look like:

project = "example-nodejs"

app "example-nodejs" {
  build {
    use "pack" {}
    registry {
        use "docker" {
          image = "registry.digitalocean.com/<username>/example-nodejs"
          tag   = "latest"
        }
    }
 }

  deploy {
    use "digitalocean" {
    }
  }
}

The following configuration options are supported. They are all optional.

  • access_token - Required if DIGITALOCEAN_ACCESS_TOKEN is not set
  • name - Defaults to the app's name
  • region - Defaults to nearest region
  • instance_size_slug - Defaults to basic-xxs
  • instance_count - Default to 1
  • http_port - Default to 8080
  • path - Default to /

Development

Building

To build the plugin, run:

make

This will regenerate the protos and build binaries for multiple platforms.

Installation

To install the binary to ${HOME}/.config/waypoint/plugins/ run:

make install

Building with Docker

To build plugins for release you can use the build-docker Makefile target, this will build your plugin for all architectures and create zipped artifacts which can be uploaded to an artifact manager such as GitHub releases.

The built artifacts will be output in the ./releases folder.

Building and releasing with GitHub Actions

When cloning the template a default GitHub Action is created at the path .github/workflows/build-plugin.yaml. You can use this action to automatically build and release your plugin.

The action has two main phases:

  1. Build - This phase builds the plugin binaries for all the supported architectures. It is triggered when pushing to a branch or on pull requests.
  2. Release - This phase creates a new GitHub release containing the built plugin. It is triggered when pushing tags which starting with v, for example v0.1.0.