|
| 1 | +name: eBPF PoC Pipeline |
| 2 | + |
| 3 | +# Runs on push to feat/poc_ebpf_package branch and can be triggered manually |
| 4 | + |
| 5 | +on: |
| 6 | + workflow_dispatch: |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - add-post-download-in-ebpf-agent-type |
| 10 | + - main |
| 11 | + pull_request: |
| 12 | + branches: |
| 13 | + - add-post-download-in-ebpf-agent-type |
| 14 | + - main |
| 15 | + schedule: |
| 16 | + # Scheduled to run at 4 a.m on every day-of-week from Monday through Friday. |
| 17 | + - cron: "0 4 * * 1-5" |
| 18 | + |
| 19 | +permissions: |
| 20 | + contents: read |
| 21 | + |
| 22 | +jobs: |
| 23 | + build-packages: |
| 24 | + name: Build packages |
| 25 | + uses: ./.github/workflows/component_packages.yml |
| 26 | + with: |
| 27 | + pre-release: false |
| 28 | + tag_name: 0.100.${{ github.run_id }} |
| 29 | + secrets: |
| 30 | + gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 31 | + gpg_private_key_base64: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} |
| 32 | + gpg_passphrase: ${{ secrets.OHAI_GPG_PASSPHRASE }} |
| 33 | + pfx_certificate_base64: ${{ secrets.OHAI_PFX_CERTIFICATE_BASE64 }} |
| 34 | + pfx_passphrase: ${{ secrets.OHAI_PFX_PASSPHRASE }} |
| 35 | + |
| 36 | + build-image: |
| 37 | + name: Build and Push nightly image |
| 38 | + uses: ./.github/workflows/component_image.yml |
| 39 | + with: |
| 40 | + # the packages are created with 0.100.run_id, however we still push the image with nightly |
| 41 | + image-tag: nightly |
| 42 | + ac-version: nightly |
| 43 | + push: true |
| 44 | + secrets: inherit |
| 45 | + |
| 46 | + security-image: |
| 47 | + name: Security scan |
| 48 | + needs: [ build-image ] |
| 49 | + uses: ./.github/workflows/component_image_security.yml |
| 50 | + with: |
| 51 | + # the packages are created with 0.100.run_id, however we still push the image with nightly |
| 52 | + image-tag: nightly |
| 53 | + secrets: inherit |
| 54 | + |
| 55 | + security-source-code: |
| 56 | + uses: ./.github/workflows/component_security.yml |
| 57 | + |
| 58 | + # This is currently required for canaries |
| 59 | + upload-packages-s3: |
| 60 | + runs-on: ubuntu-latest |
| 61 | + needs: [ build-packages ] |
| 62 | + name: Upload packages to testing bucket |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 |
| 65 | + with: |
| 66 | + fetch-depth: 0 |
| 67 | + |
| 68 | + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 |
| 69 | + with: |
| 70 | + name: built-binaries-0.100.${{ github.run_id }} |
| 71 | + path: ./ |
| 72 | + |
| 73 | + - name: Publish deb to S3 action |
| 74 | + uses: newrelic/infrastructure-publish-action@26d9d8604b2cf2e7343dc287c958e8bbc1a3f750 # v1 |
| 75 | + with: |
| 76 | + tag: 0.100.${{ github.run_id }} |
| 77 | + app_name: "newrelic-agent-control" |
| 78 | + repo_name: ${{ github.repository }} |
| 79 | + schema: "custom-local" |
| 80 | + schema_path: "/srv/build/upload-schema-linux-deb-nightly.yml" |
| 81 | + aws_access_key_id: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_TESTING }} |
| 82 | + aws_secret_access_key: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_TESTING }} |
| 83 | + aws_s3_bucket_name: "nr-downloads-ohai-testing" |
| 84 | + aws_s3_lock_bucket_name: "onhost-ci-lock-testing" |
| 85 | + access_point_host: "testing" |
| 86 | + run_id: ${{ github.run_id }} |
| 87 | + aws_region: "us-east-1" |
| 88 | + aws_role_session_name: ${{ secrets.OHAI_AWS_ROLE_SESSION_NAME_TESTING }} |
| 89 | + aws_role_arn: ${{ secrets.OHAI_AWS_ROLE_ARN_TESTING }} |
| 90 | + # used for signing package stuff |
| 91 | + gpg_passphrase: ${{ secrets.OHAI_GPG_PASSPHRASE }} |
| 92 | + gpg_private_key_base64: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} # base64 encoded |
| 93 | + disable_lock: false |
| 94 | + dest_prefix: "poc_ebpf/" |
| 95 | + local_packages_path: "/srv/dist/" |
| 96 | + apt_skip_mirror: true |
| 97 | + |
0 commit comments