Skip to content

Commit

Permalink
Merge to master publish linux packages (#77)
Browse files Browse the repository at this point in the history
* Renaming job and steps
* Use testing bucket
  • Loading branch information
luckslovez authored Nov 17, 2023
1 parent 8f4a611 commit 57eda1f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/merge-to-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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/"
Expand Down

0 comments on commit 57eda1f

Please sign in to comment.