waypoint-plugin-cloudstorage is a registry plugin for Waypoint. It allows you to upload an artifact to Google Cloud Storage.
This plugin is still work in progress, please open an issue for any feedback or issues.
To install the plugin, run the following command:
git clone git@github.com:sharkyze/waypoint-plugin-cloudstorage.git # or gh repo clone sharkyze/waypoint-plugin-cloudstorage
cd waypoint-plugin-cloudstorage
make install # Installs the plugin in `${HOME}/.config/waypoint/plugins/`
Please follow the instructions in the Google Cloud Run tutorial. This plugin uses GCP Application Default Credentials (ADC) for authentication. More info here.
project = "project"
app "webapp" {
path = "./webapp"
build {
use "archive" {
sources = ["src/", "public/", "package.json"] # Sources are relative to /path/to/project/webapp/
output_name = "webapp.zip"
overwrite_existing = true
}
registry {
use "cloudstorage" {
source = "webapp.zip"
name = "artifcats/webapp/${gitrefpretty()}.zip"
bucket = "staging.gcp-project-name.appspot.com"
}
}
}
}