Skip to content

Commit

Permalink
Merge pull request #2179 from hmstepanek/move-release-from-lambda-to-gha
Browse files Browse the repository at this point in the history
Move init container release from lambda to GHA
  • Loading branch information
jtduffy authored Jan 30, 2025
2 parents 853cb03 + c491a95 commit 3b2fcd9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/Create-Release-Tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Create release tags
on:
workflow_dispatch: # Allow manual trigger
inputs:
agent-version:
description: 'The release tag to create init containers for, including the v. Eg v8.12.0’. '
required: true
type: string
jobs:
create_release_tags:
runs-on: ubuntu-20.04
steps:
- name: Create release tags for K8s Init Container
run: |
RELEASE_TITLE="New Relic Java Agent ${{ inputs.agent-version }}.0"
RELEASE_TAG="${{ inputs.agent-version }}.0_java"
RELEASE_NOTES="Automated release for [Java Agent ${{ inputs.agent-version }}](https://github.com/newrelic/newrelic-java-agent/releases/tag/${{ inputs.agent-version }})"
gh auth login --with-token <<< $GH_RELEASE_TOKEN
echo "newrelic/newrelic-agent-init-container - Releasing \"${RELEASE_TITLE}\" with tag ${RELEASE_TAG}"
gh release create "${RELEASE_TAG}" --title="${RELEASE_TITLE}" --repo=newrelic/newrelic-agent-init-container --notes="${RELEASE_NOTES}"
env:
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}

0 comments on commit 3b2fcd9

Please sign in to comment.