-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github-actions(updatecli): use GitHub secrets (#13197)
- Loading branch information
Showing
4 changed files
with
34 additions
and
26 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,12 +30,16 @@ jobs: | |
with: | ||
ref: ${{ matrix.branch }} | ||
|
||
- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current | ||
- uses: elastic/oblt-actions/updatecli/[email protected] | ||
with: | ||
vaultUrl: ${{ secrets.VAULT_ADDR }} | ||
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} | ||
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} | ||
pipeline: ./.ci/bump-elastic-stack-snapshot.yml | ||
command: '--experimental apply' | ||
command: --experimental apply --config .ci/bump-elastic-stack-snapshot.yml | ||
env: | ||
BRANCH: ${{ matrix.branch }} | ||
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }} | ||
|
||
- if: ${{ failure() }} | ||
uses: elastic/oblt-actions/slack/[email protected] | ||
with: | ||
channel-id: '#apm-server' | ||
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @robots-ci please look what's going on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>" | ||
bot-token: ${{ secrets.SLACK_BOT_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,15 @@ jobs: | |
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current | ||
|
||
- uses: elastic/oblt-actions/updatecli/[email protected] | ||
with: | ||
command: --experimental apply --config .ci/bump-golang.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }} | ||
|
||
- uses: elastic/oblt-actions/slack/[email protected] | ||
with: | ||
vaultUrl: ${{ secrets.VAULT_ADDR }} | ||
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} | ||
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} | ||
pipeline: ./.ci/bump-golang.yml | ||
command: '--experimental apply' | ||
bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
channel-id: "#apm-server" | ||
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @robots-ci please look what's going on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,22 +28,21 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ matrix.branch }} | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current | ||
|
||
- uses: elastic/oblt-actions/updatecli/[email protected] | ||
with: | ||
command: --experimental apply --config .ci/update-beats.yml | ||
env: | ||
BRANCH_NAME: ${{ matrix.branch }} | ||
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }} | ||
|
||
- if: ${{ failure() }} | ||
uses: elastic/oblt-actions/slack/[email protected] | ||
with: | ||
vaultUrl: ${{ secrets.VAULT_ADDR }} | ||
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} | ||
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} | ||
pipeline: ./.ci/update-beats.yml | ||
command: '--experimental apply' | ||
- if: failure() | ||
uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current | ||
with: | ||
vaultUrl: ${{ secrets.VAULT_ADDR }} | ||
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} | ||
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} | ||
slackChannel: "#apm-server" | ||
channel-id: '#apm-server' | ||
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @robots-ci please look what's going on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>" | ||
bot-token: ${{ secrets.SLACK_BOT_TOKEN }} |