lasthourcloud/resources/views/livewire/project/shared/webhooks.blade.php

57 lines
3.3 KiB
PHP
Raw Normal View History

<div class="flex flex-col gap-2">
<div class="flex items-center gap-2">
<h2>Webhooks</h2>
<x-helper
2024-03-27 10:07:29 +00:00
helper="For more details goto our <a class='underline dark:text-white' href='https://coolify.io/docs/api-reference/deploy-webhook' target='_blank'>docs</a>." />
</div>
<div>
<x-forms.input readonly
2024-03-27 10:07:29 +00:00
helper="See details in our <a target='_blank' class='underline dark:text-white' href='https://coolify.io/docs/api-reference/deploy-webhook'>documentation</a>."
label="Deploy Webhook (auth required)" id="deploywebhook"></x-forms.input>
</div>
2024-03-20 11:54:06 +00:00
@if ($resource->type() === 'application')
2023-12-03 11:16:33 +00:00
<div>
<h3>Manual Git Webhooks</h3>
@if ($githubManualWebhook && $gitlabManualWebhook)
2024-07-12 09:52:32 +00:00
<form wire:submit='submit' class="flex flex-col gap-2">
2023-12-03 11:16:33 +00:00
<div class="flex items-end gap-2">
<x-forms.input helper="Content Type in GitHub configuration could be json or form-urlencoded."
readonly label="GitHub" id="githubManualWebhook"></x-forms.input>
<x-forms.input type="password"
helper="Need to set a secret to be able to use this webhook. It should match with the secret in GitHub."
2024-07-12 09:52:32 +00:00
label="GitHub Webhook Secret" id="githubManualWebhookSecret"></x-forms.input>
2023-12-03 11:16:33 +00:00
</div>
<a target="_blank" class="flex hover:no-underline" href="{{ $resource?->gitWebhook }}">
<x-forms.button>Webhook Configuration on GitHub
<x-external-link />
</x-forms.button>
</a>
<div class="flex gap-2">
<x-forms.input readonly label="GitLab" id="gitlabManualWebhook"></x-forms.input>
<x-forms.input type="password"
helper="Need to set a secret to be able to use this webhook. It should match with the secret in GitLab."
2024-07-12 09:52:32 +00:00
label="GitLab Webhook Secret" id="gitlabManualWebhookSecret"></x-forms.input>
2023-12-03 11:16:33 +00:00
</div>
<div class="flex gap-2">
<x-forms.input readonly label="Bitbucket" id="bitbucketManualWebhook"></x-forms.input>
2024-03-20 11:54:06 +00:00
<x-forms.input type="password"
helper="Need to set a secret to be able to use this webhook. It should match with the secret in Bitbucket."
2024-07-12 09:52:32 +00:00
label="Bitbucket Webhook Secret" id="bitbucketManualWebhookSecret"></x-forms.input>
</div>
2024-05-23 09:30:18 +00:00
<div class="flex gap-2">
<x-forms.input readonly label="Gitea" id="giteaManualWebhook"></x-forms.input>
<x-forms.input type="password"
helper="Need to set a secret to be able to use this webhook. It should match with the secret in Gitea."
2024-07-12 09:52:32 +00:00
label="Gitea Webhook Secret" id="giteaManualWebhookSecret"></x-forms.input>
2024-05-23 09:30:18 +00:00
</div>
2023-12-03 11:16:33 +00:00
<x-forms.button type="submit">Save</x-forms.button>
</form>
@else
You are using an official Git App. You do not need manual webhooks.
@endif
</div>
@endif
</div>