feat: Use shared workflow for ci and nightly #929
Workflow file for this run
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
name: 🔄 CI | PR / Merge | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build & Validate | |
strategy: | |
matrix: | |
distribution: | |
- nr-otel-collector | |
uses: ./.github/workflows/base-build.yaml | |
with: | |
distribution: nr-otel-collector | |
secrets: | |
docker_hub_username: ${{ secrets.OTELCOMM_DOCKER_HUB_USERNAME }} | |
docker_hub_password: ${{ secrets.OTELCOMM_DOCKER_HUB_PASSWORD }} | |
gpg_private_key: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} | |
gpg_passphrase: ${{ secrets.OHAI_GPG_PASSPHRASE }} | |
registry: 'newrelic' | |
terraform: | |
uses: ./.github/workflows/terraform.yaml | |
if: ${{ !github.event.act && github.event.pull_request.user.login != 'dependabot[bot]' }} | |
with: | |
branch: ${{ github.ref }} | |
tf_work_subdir: permanent | |
execute_plan: true | |
# apply only after merge to main | |
execute_apply: ${{ github.ref_name == 'main' && github.event_name == 'push' }} | |
secrets: | |
aws_access_key_id: ${{ secrets.OTELCOMM_AWS_TEST_ACC_ACCESS_KEY_ID }} | |
aws_secret_access_key: ${{secrets.OTELCOMM_AWS_TEST_ACC_SECRET_ACCESS_KEY}} | |
aws_account_id: ${{ secrets.OTELCOMM_AWS_TEST_ACC_ACCOUNT_ID }} | |
nr_backend_url: ${{secrets.NR_STAGING_BACKEND_URL}} | |
nr_ingest_key: ${{ secrets.OTELCOMM_NR_INGEST_KEY }} |