Skip to content

Instantly share code, notes, and snippets.

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
name: "github-event-source-ingress"
spec:
rules:
- host: YOUR_BACKEND_URL
http:
# Info on GitHub Webhook: https://developer.github.com/v3/repos/hooks/#create-a-hook
apiVersion: argoproj.io/v1alpha1
kind: EventSource
metadata:
name: github-event-source
spec:
service:
ports:
- port: 443
targetPort: 12000
@yishaihl
yishaihl / pr_environment_workflow.yml
Created July 10, 2022 13:08
pr_environment_workflow.yml
name: PR Environment Workflow
on:
pull_request:
types: [ labeled , synchronize , reopened , opened]
jobs:
push_docker_build_promote:
if: contains( github.event.pull_request.labels.*.name, 'k8s')
steps:
- name: add image tag label to pr