Update rollouts after container builds
This commit is contained in:
parent
f38380898f
commit
456ded4b58
4 changed files with 38 additions and 4 deletions
|
@ -20,3 +20,16 @@ jobs:
|
|||
tags: git.janky.solutions/jankysolutions/infra/keycloak:latest
|
||||
platforms: linux/amd64
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
rollout:
|
||||
name: roll out update
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: git.janky.solutions/jankysolutions/infra/deployer:latest
|
||||
needs: [build-synapse]
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: roll out update
|
||||
run: |
|
||||
set -euo pipefail
|
||||
echo "${{ secrets.KUBERNETES_CLIENT_CONFIG }}" > ~/.kube/config
|
||||
kubectl -n keycloak rollout restart deployment keycloak
|
||||
|
|
|
@ -20,3 +20,16 @@ jobs:
|
|||
tags: git.janky.solutions/jankysolutions/infra/traefik-forward-auth:latest
|
||||
platforms: linux/amd64
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
rollout:
|
||||
name: roll out update
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: git.janky.solutions/jankysolutions/infra/deployer:latest
|
||||
needs: [build-synapse]
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: roll out update
|
||||
run: |
|
||||
set -euo pipefail
|
||||
echo "${{ secrets.KUBERNETES_CLIENT_CONFIG }}" > ~/.kube/config
|
||||
kubectl -n kube-system rollout restart deployment -l app=traefik-forward-auth
|
||||
|
|
|
@ -4,18 +4,21 @@ metadata:
|
|||
name: traefik-forward-auth-herzfeld-casa
|
||||
namespace: kube-system
|
||||
labels:
|
||||
app: traefik-forward-auth-herzfeld-casa
|
||||
app: traefik-forward-auth
|
||||
instance: herzfeld-casa
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: traefik-forward-auth-herzfeld-casa
|
||||
app: traefik-forward-auth
|
||||
instance: herzfeld-casa
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: traefik-forward-auth-herzfeld-casa
|
||||
app: traefik-forward-auth
|
||||
instance: herzfeld-casa
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 60
|
||||
containers:
|
||||
|
@ -41,7 +44,8 @@ metadata:
|
|||
namespace: kube-system
|
||||
spec:
|
||||
selector:
|
||||
app: traefik-forward-auth-herzfeld-casa
|
||||
app: traefik-forward-auth
|
||||
instance: herzfeld-casa
|
||||
ports:
|
||||
- name: auth-http
|
||||
port: 4181
|
||||
|
|
|
@ -5,17 +5,20 @@ metadata:
|
|||
namespace: kube-system
|
||||
labels:
|
||||
app: traefik-forward-auth
|
||||
instance: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: traefik-forward-auth
|
||||
instance: default
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: traefik-forward-auth
|
||||
instance: default
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 60
|
||||
containers:
|
||||
|
@ -42,6 +45,7 @@ metadata:
|
|||
spec:
|
||||
selector:
|
||||
app: traefik-forward-auth
|
||||
instance: default
|
||||
ports:
|
||||
- name: auth-http
|
||||
port: 4181
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue