Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement the action based on godo and make it more orchestratable
This is a complete rewrite with the goal of being more orchestratable in a broader GitHub Actions context. - Rewritten to use `godo` instead of shelling out to `doctl` for better error handling and overall control of the process. Fixes #112. Fixes #113. - Supports picking up an in-repository (or filesystem really) `app.yaml` (defaults to `.do/app.yaml`, configurable via the `app_spec_location` input) to create the app from instead of having to rely on an already existing app that's then downloaded (though that is still supported). The in-filesystem app spec can also be templated with environment variables automatically (see examples below). Fixes #106. - Prints the build and deploy logs into the Github Action log (configurable via `print_build_logs` and `print_deploy_logs`) and surfaces them as outputs `build_logs` and `deploy_logs`. Fixes #73. - Provides the app's metadata as the output `app`. Fixes #92. **Breaking changes:** - The `images` input is no longer supported. Instead, use env-var-substitution for an in-repository app spec or the `IMAGE_DIGEST_$component-name`/`IMAGE_TAG_$component-name` environment variables to change the respective fields of images in an existing app.
- Loading branch information