Migrated docs webhook to GHA (#37114)

* Migrated docs webhook to GHA

* reverted accidental e change

* revert accidental actionbuttons change

* fix attempt
This commit is contained in:
fheinecke
2024-01-29 20:52:16 +00:00
committed by GitHub
parent 9ce767ac12
commit b76ee973ba
2 changed files with 22 additions and 29 deletions
+1 -29
View File
@@ -1,32 +1,4 @@
---
kind: pipeline
type: kubernetes
name: update-docs-webhook
trigger:
event:
include:
- push
exclude:
- pull_request
branch:
include:
- master
- branch/*
repo:
include:
- gravitational/teleport
clone:
disable: true
steps:
- name: Trigger docs deployment
image: plugins/webhook
settings:
urls:
from_secret: DOCS_DEPLOY_HOOK
---
################################################
# Generated using dronegen, do not edit by hand!
# Use 'make dronegen' to update.
@@ -5535,6 +5507,6 @@ image_pull_secrets:
- DOCKERHUB_CREDENTIALS
---
kind: signature
hmac: 1201ae30cc439265cf33baf9b9e4d964fda6cd8197989b4930a308325c2b16b3
hmac: 9b1631ac46ce1c77ec3fbb4c6d83a243d5cf1a26b34b67dc5e561c064fcdf0fd
...
@@ -0,0 +1,21 @@
name: Update docs webhook
on:
push:
branches:
- master
- branch/v*
workflow_dispatch:
jobs:
update-webhook:
name: Update docs webhook
runs-on: ubuntu-latest
environment: update-docs
steps:
- name: Call deployment webhook
env:
WEBHOOK_URL: ${{ secrets.DOCS_DEPLOY_HOOK }}
run: |
if curl --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then
echo "Triggered successfully"
fi