New Relic One Publish & Deploy Action
An attempt at deploying & publishing a New Relic One Nerdpack using GitHub Actions.
Prerequisites
The code for the Nerdpack must already exist in the $GITHUB_WORKSPACE
directory. The easiest way to accomplish this is to add uses: actions/checkout@v1
as a step before this action is used.
Inputs
- Required:
api-key
- 'A "personal" New Relic API Key, that specifies which account & user will be used for publishing your Nerdpack. region
-us
(default) oreu
- The Region of the account where you want to publish.channel
-DEV
(default),BETA
, orSTABLE
- The channel you want to deploy to.
nr1-in-docker
This repo includes a dockerized copy of the nr1
CLI tool. Everywhere you see the nr1
CLI command referenced in New Relic's documentation (e.g. the list of available commands) you can run the ./nr1
executable in this repo instead.
Notes:
- The first time you run
./nr1
it will build the docker image for you. - The default tag assigned to the docker image is
nr1-in-docker
. If you want to use a different tag for the image, use the$NR1_IMAGE
environment variable.