GithubHelp home page GithubHelp logo

isabella232 / deployment-marker-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from newrelic/deployment-marker-action

0.0 0.0 0.0 36 KB

Github Action for recording a Deployment Marker in New Relic

Home Page: https://newrelic.github.io/developer-toolkit/

License: Apache License 2.0

Shell 58.83% Makefile 29.27% Dockerfile 11.90%

deployment-marker-action's Introduction

Community Project header

New Relic Application Deployment Marker

GitHub Marketplace version

A GitHub Action to add New Relic deployment markers during your release pipeline.

Deployment Markers are only supported by APM Applications.

Inputs

Key Required Default Description
accountId yes - The account number the application falls under. This could also be a subaccount.
apiKey yes - Your New Relic personal API key.
applicationId yes - The New Relic application ID to apply the deployment marker.
changelog no - A summary of what changed in this deployment, visible in the Deployments page.
description no - A high-level description of this deployment, visible in the Overview page and on the Deployments page when you select an individual deployment.
region no US The region of your New Relic account. Default: US
revision yes - Metadata to apply to the deployment marker - e.g. the latest release tag
user no github.actor A username to associate with the deployment, visible in the Overview page and on the Deployments page.

Example usage

Use Release Tag for Revision

The following example could be added as a job to your existing workflow that creates a New Relic deployment marker with the revision being the release Tag.

Github secrets assumed to be set:

  • NEW_RELIC_ACCOUNT_ID - New Relic Account ID the application is reporting to
  • NEW_RELIC_API_KEY - Personal API key
  • NEW_RELIC_APPLICATION_ID - New Relic Application ID to create the marker on
name: Release

on:
  - release

jobs:
  newrelic:
    runs-on: ubuntu-latest
    name: New Relic
    steps:
      - name: Set Release Version from Tag
        run: echo "RELEASE_VERSION=${{ GITHUB_REF:10 }}" >> $GITHUB_ENV

      - name: Create New Relic deployment marker
        uses: newrelic/deployment-marker-action@v1
        with:
          apiKey: ${{ secrets.NEW_RELIC_API_KEY }}
          accountId: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
          applicationId: ${{ secrets.NEW_RELIC_APPLICATION_ID }}
          revision: "${{ env.RELEASE_VERSION }}"

All input options

Add a New Relic application deployment marker on release, with all of the options set.

Github secrets assumed to be set:

  • NEW_RELIC_ACCOUNT_ID - New Relic Account ID the application is reporting to
  • NEW_RELIC_API_KEY - Personal API key
  • NEW_RELIC_APPLICATION_ID - New Relic Application ID to create the marker on
name: Release
on:
  - release

jobs:
  newrelic:
    runs-on: ubuntu-latest
    steps:
      - name: Create New Relic deployment marker
        uses: newrelic/deployment-marker-action@v1
        with:
          accountId: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
          apiKey: ${{ secrets.NEW_RELIC_API_KEY }}
          applicationId: ${{ secrets.NEW_RELIC_APPLICATION_ID }}
          revision: "${{ github.ref }}-${{ github.sha }}"

          # Optional
          changelog: "See https://github.com/${{ github.repository }}/blob/master/CHANGELOG.md for details"
          description: "Automated Deployment via Github Actions"
          region: ${{ secrets.NEW_RELIC_REGION }}
          user: "${{ github.actor }}"

deployment-marker-action's People

Contributors

b0go avatar sanderblue avatar stephengoodall avatar zlesnr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.