Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Remove system config update from agent deploy workflow. #2135

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/workflows/deploy_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ on:
description: Re-Index the Download Site S3 container
required: true
default: true
update-apm-version:
type: boolean
description: Update APM Version
required: true
default: true

permissions:
contents: read
Expand Down Expand Up @@ -346,33 +341,6 @@ jobs:
curl -i -X POST -H 'Fastly-Key:${{ secrets.FASTLY_TOKEN }}' ${{ secrets.FASTLY_URL }}
shell: bash

update-apm:
name: Update System Configuration Page
runs-on: ubuntu-latest
if: ${{ github.event.inputs.update-apm-version == 'true' }}
steps:
- name: Update system configuration page
run: |
PAYLOAD="{
\"system_configuration\": {
\"key\": \"dotnet_agent_version\",
\"value\": \"${{ github.event.inputs.agent_version }}\"
}
}"
CONTENT_TYPE='Content-Type: application/json'

# STAGING
# curl -X POST 'https://staging-api.newrelic.com/v2/system_configuration.json' \
# -H "X-Api-Key:${{ secrets.NEW_RELIC_API_KEY_STAGING }}" -i \
# -H "$CONTENT_TYPE" \
# -d "$PAYLOAD"

# PRODUCTION
curl -X POST 'https://api.newrelic.com/v2/system_configuration.json' \
-H "X-Api-Key:${{ secrets.NEW_RELIC_API_KEY_PRODUCTION }}" -i \
-H "$CONTENT_TYPE" \
-d "$PAYLOAD"

publish-release-notes:
needs: [deploy-linux, deploy-nuget, index-download-site]
if: ${{ github.event.inputs.deploy == 'true' && github.event.inputs.downloadsite == 'true' && github.event.inputs.nuget == 'true' && github.event.inputs.linux == 'true' && github.event.inputs.linux-deploy-to-production == 'true' }}
Expand Down
Loading