Skip to content

Commit e4ff798

Browse files
authored
Merge pull request #1274 from newrelic/add-layers-release-flow-to-gha
Add auto-layer-releases flow to deploy flow
2 parents 4c06d26 + 3de90db commit e4ff798

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/deploy-python.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,16 @@ jobs:
182182
env:
183183
TWINE_USERNAME: __token__
184184
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
185+
186+
- name: Create release tags for Lambda and K8s Init Containers
187+
run: |
188+
RELEASE_TITLE="New Relic Python Agent ${GITHUB_REF}.0"
189+
RELEASE_TAG="${GITHUB_REF}.0_python"
190+
RELEASE_NOTES="Automated release for [Python Agent ${GITHUB_REF}](https://github.com/newrelic/newrelic-python-agent/releases/tag/${GITHUB_REF})"
191+
gh auth login --with-token <<< $GH_RELEASE_TOKEN
192+
echo "newrelic/newrelic-lambda-layers - Releasing ${RELEASE_TITLE} with tag ${RELEASE_TAG}"
193+
gh release create "${RELEASE_TAG}" --title=${RELEASE_TITLE} --repo=newrelic/newrelic-lambda-layers --notes=${RELEASE_NOTES}
194+
echo "newrelic/newrelic-agent-init-container - Releasing ${RELEASE_TITLE} with tag ${RELEASE_TAG}"
195+
gh release create "${RELEASE_TAG}" --title=${RELEASE_TITLE} --repo=newrelic/newrelic-agent-init-container --notes=${RELEASE_NOTES}
196+
env:
197+
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}

0 commit comments

Comments
 (0)