github-action: run buildkite action with GH secrets (#1628) #147
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
--- | |
# Publish a snapshot. A "snapshot" is a packaging of the latest *unreleased* APM agent, | |
# published to a known GCS bucket for use in edge demo/test environments. | |
name: Snapshoty | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '*.md' | |
- '*.asciidoc' | |
- 'docs/**' | |
permissions: | |
contents: read | |
jobs: | |
upload: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache-dependency-path: '**/go.sum' | |
- name: Create snapshot tarball | |
run: ./scripts/ci/package.sh | |
- name: Publish snaphosts | |
uses: elastic/apm-pipeline-library/.github/actions/snapshoty-simple@current | |
with: | |
config: '.ci/snapshoty.yml' | |
vaultUrl: ${{ secrets.VAULT_ADDR }} | |
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} | |
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} |