15 Commits

8 changed files with 40 additions and 1 deletions

View File

@ -81,7 +81,7 @@ spec:
spec: spec:
containers: containers:
- name: api - name: api
image: marcin00.azurecr.io/user-microservice:37aa5692eff627f19cc5f7a37d882bf6126c9d13 image: marcin00.azurecr.io/user-microservice:d855e795e2706e235b397a73ca5f0e068ee8eec4
ports: ports:
- containerPort: 80 - containerPort: 80
env: env:

View File

@ -0,0 +1,14 @@
apiVersion: notification.toolkit.fluxcd.io/v1beta2
kind: Receiver
metadata:
name: gitea-receiver
namespace: flux-system
spec:
type: git
events:
- push
resources:
- kind: GitRepository
name: user-microservice-repo
secretRef:
name: webhook-token

View File

@ -0,0 +1,15 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: user-microservice
namespace: flux-system
spec:
interval: 1m
path: ./apps/user-microservice
prune: true
sourceRef:
kind: GitRepository
name: user-microservice-repo
targetNamespace: user-microservice
resources:
- flux-receiver.yaml

10
clusters/prod/source.yaml Normal file
View File

@ -0,0 +1,10 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: user-microservice-repo
namespace: flux-system
spec:
interval: 1m
url: https://gitea.marcin00.pl/pikram/user-microservice-deploy.git
ref:
branch: fluxcd