Skip to content

Commit

Permalink
github-action: run buildkite action with GH secrets (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jun 4, 2024
1 parent 3aa9c64 commit 438ea4e
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/microbenchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,15 @@ permissions:
jobs:
microbenchmark:
runs-on: ubuntu-latest
# wait up to 1 hour
timeout-minutes: 60
timeout-minutes: 5
steps:
- id: buildkite
name: Run buildkite pipeline
uses: elastic/apm-pipeline-library/.github/actions/buildkite@current
- name: Run microbenchmark
uses: elastic/oblt-actions/buildkite/[email protected]
with:
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
pipeline: apm-agent-microbenchmark
waitFor: true
printBuildLogs: true
buildEnvVars: |
pipeline: "apm-agent-microbenchmark"
token: ${{ secrets.BUILDKITE_TOKEN }}
wait-for: false
env-vars: |
script=scripts/ci/bench.sh
repo=apm-agent-go
sha=${{ github.sha }}
- if: ${{ failure() }}
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
with:
url: ${{ secrets.VAULT_ADDR }}
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
channel: "#apm-agent-go"
message: |
:ghost: [${{ github.repository }}] microbenchmark *${{ github.ref_name }}* failed to run in Buildkite.
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)

0 comments on commit 438ea4e

Please sign in to comment.