fix some autodeploy stuff
All checks were successful
/ build-deployer (push) Successful in 36s
/ diff-and-deploy (push) Successful in 43s

This commit is contained in:
Finn 2024-10-29 23:42:29 -07:00
parent ff115f79aa
commit 75f57f954e
6 changed files with 28 additions and 4 deletions

View file

@ -11,7 +11,7 @@ jobs:
steps:
- run: apk add --no-cache nodejs git
- name: login to container registry
run: echo "${{ secrets.DEPLOY_SECRET }}" | docker login --username ${{ secrets.DEPLOY_USER }} --password-stdin git.janky.solutions
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login --username ${{ secrets.DEPLOY_USER }} --password-stdin git.janky.solutions
- name: build container image
uses: docker/build-push-action@v6
with:

View file

@ -7,7 +7,7 @@ jobs:
diff-and-deploy:
runs-on: ubuntu-latest
container:
image: git.devhack.net/devhack/containers/deployer:latest
image: git.janky.solutions/jankysolutions/infra/deployer:latest
steps:
- uses: actions/checkout@v4
- name: kubectl diff and deploy

View file

@ -0,0 +1,20 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: infra-deployer
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: infra-deployer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: infra-deployer
subjects:
- kind: User
name: infra-deployer

View file

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- infra-deployer.yaml

View file

@ -53,7 +53,7 @@ apiVersion: v1
clusters:
- cluster:
certificate-authority-data: {ca}
server: https://k8s-node-1:6443
server: https://10.5.1.110:6443
name: default
contexts:
- context:

View file

@ -3,7 +3,7 @@ kind: Kustomization
namespace: longhorn-system
resources:
- https://github.com/longhorn/longhorn/releases/download/v1.6.2/longhorn.yaml
- secrets.yaml
# - secrets.yaml
- backup.yaml
- ingress.yaml
- servicemonitor.yaml