From 57eda1f225f3285e494fec4e45d6b51b48e91685 Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 17 Nov 2023 09:43:24 +0100 Subject: [PATCH] Merge to master publish linux packages (#77) * Renaming job and steps * Use testing bucket --- .github/workflows/merge-to-master.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/merge-to-master.yml b/.github/workflows/merge-to-master.yml index 553d7ff3..d3255cfd 100644 --- a/.github/workflows/merge-to-master.yml +++ b/.github/workflows/merge-to-master.yml @@ -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/infrastructure-publish-action@v1.2.3 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/"