-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2179 from hmstepanek/move-release-from-lambda-to-gha
Move init container release from lambda to GHA
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |