mirror of https://github.com/status-im/consul.git
ci: upload test results to DataDog on test failure (#19956)
Due to the unintuitive behavior of GHA w.r.t. implicit status check `success()`, test results were only being uploaded on success (failures presumably came from retried tests that passed).
This commit is contained in:
parent
02d4520235
commit
79e02f8a89
|
@ -106,12 +106,12 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
|
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') && !cancelled() }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') && !cancelled() }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -152,13 +152,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -169,14 +169,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -259,13 +259,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -276,14 +276,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
|
@ -155,13 +155,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -172,14 +172,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -280,13 +280,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -297,14 +297,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
|
@ -155,13 +155,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -172,14 +172,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -280,13 +280,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -297,14 +297,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -370,13 +370,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -387,14 +387,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
|
@ -152,13 +152,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -169,14 +169,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -277,13 +277,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -294,14 +294,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -365,13 +365,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -382,14 +382,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
|
@ -133,13 +133,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -150,26 +150,29 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: ${{ env.DATADOG_API_KEY}}
|
if: ${{ !cancelled() && env.DATADOG_API_KEY}}
|
||||||
env:
|
env:
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
||||||
|
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: ${{env.TEST_RESULTS}}
|
path: ${{env.TEST_RESULTS}}
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
name: jsonfile
|
name: jsonfile
|
||||||
path: /tmp/jsonfile
|
path: /tmp/jsonfile
|
||||||
- name: "Re-run fails report"
|
- name: "Re-run fails report"
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
run: |
|
run: |
|
||||||
.github/scripts/rerun_fails_report.sh /tmp/gotestsum-rerun-fails
|
.github/scripts/rerun_fails_report.sh /tmp/gotestsum-rerun-fails
|
||||||
|
|
|
@ -110,13 +110,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -127,26 +127,29 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: ${{ env.DATADOG_API_KEY}}
|
if: ${{ !cancelled() && env.DATADOG_API_KEY}}
|
||||||
env:
|
env:
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
||||||
|
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: ${{env.TEST_RESULTS}}
|
path: ${{env.TEST_RESULTS}}
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
name: jsonfile
|
name: jsonfile
|
||||||
path: /tmp/jsonfile
|
path: /tmp/jsonfile
|
||||||
- name: "Re-run fails report"
|
- name: "Re-run fails report"
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
run: |
|
run: |
|
||||||
.github/scripts/rerun_fails_report.sh /tmp/gotestsum-rerun-fails
|
.github/scripts/rerun_fails_report.sh /tmp/gotestsum-rerun-fails
|
||||||
|
|
|
@ -1165,13 +1165,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -1183,14 +1183,14 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare datadog-ci
|
- name: Prepare datadog-ci
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/download/v2.17.2/datadog-ci_win-x64.exe" --output "C:/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/download/v2.17.2/datadog-ci_win-x64.exe" --output "C:/datadog-ci"
|
||||||
icacls C:/datadog-ci /grant:rx Everyone:RX
|
icacls C:/datadog-ci /grant:rx Everyone:RX
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
|
@ -119,13 +119,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -136,14 +136,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -200,13 +200,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -217,14 +217,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -232,7 +232,7 @@ jobs:
|
||||||
|
|
||||||
- name: upload leader coverage
|
- name: upload leader coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -240,7 +240,7 @@ jobs:
|
||||||
|
|
||||||
- name: upload agent coverage
|
- name: upload agent coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -344,13 +344,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -361,14 +361,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -456,13 +456,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -473,14 +473,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -538,13 +538,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -555,14 +555,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
Loading…
Reference in New Issue