-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge to master publish linux packages (#77)
* Renaming job and steps * Use testing bucket
- Loading branch information
1 parent
8f4a611
commit 57eda1f
Showing
1 changed file
with
11 additions
and
10 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 |
---|---|---|
|
@@ -6,12 +6,13 @@ on: | |
- test_main | ||
|
||
jobs: | ||
cd: | ||
name: Promote pre-release to release and publish artifacts to production repositories | ||
publishing-to-s3: | ||
name: Publish linux artifacts into s3 bucket | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/github-script@v6 | ||
- name: Get PR number | ||
uses: actions/github-script@v6 | ||
id: get_pr_number | ||
with: | ||
script: | | ||
|
@@ -24,20 +25,20 @@ jobs: | |
).data[0].number; | ||
result-encoding: string | ||
|
||
- name: Publish assets to windows S3 | ||
- name: Publish packages | ||
uses: newrelic/[email protected] | ||
env: | ||
TAG: "tmp-pr-${{ steps.get_pr_number.outputs.result }}" | ||
GPG_MAIL: ${{ secrets.LOGGING_GPG_MAIL }} | ||
GPG_PASSPHRASE: ${{ secrets.OHAI_GPG_PASSPHRASE }} | ||
GPG_PRIVATE_KEY_BASE64: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} # base64 encoded | ||
AWS_S3_BUCKET_NAME: "nr-downloads-main" | ||
AWS_S3_LOCK_BUCKET_NAME: "onhost-ci-lock" | ||
AWS_S3_BUCKET_NAME: "nr-downloads-ohai-testing" | ||
AWS_S3_LOCK_BUCKET_NAME: "onhost-ci-lock-testing" | ||
AWS_REGION: "us-east-1" | ||
AWS_ACCESS_KEY_ID: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_STAGING }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_STAGING }} | ||
AWS_ROLE_ARN: ${{ secrets.OHAI_AWS_ROLE_ARN_STAGING }} | ||
AWS_ROLE_SESSION_NAME: ${{ secrets.OHAI_AWS_ROLE_SESSION_NAME_STAGING }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_TESTING }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_TESTING }} | ||
AWS_ROLE_ARN: ${{ secrets.OHAI_AWS_ROLE_ARN_TESTING }} | ||
AWS_ROLE_SESSION_NAME: ${{ secrets.OHAI_AWS_ROLE_SESSION_NAME_TESTING }} | ||
with: | ||
tag: ${{env.TAG}} | ||
dest_prefix: "logging-test/" | ||
|