mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
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:
+1
-29
@@ -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
|
||||
Reference in New Issue
Block a user