move rollout to separate job
All checks were successful
/ build-synapse (push) Successful in 17s
/ roll out update (push) Successful in 4s

This commit is contained in:
Finn 2024-11-26 13:29:00 -08:00
parent 6bbc5b24d7
commit 29f22759a4

View file

@ -19,8 +19,15 @@ jobs:
tags: git.janky.solutions/jankysolutions/infra/synapse: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
if: github.ref == 'refs/heads/main'
run: |
set -euo pipefail
echo "${{ secrets.KUBERNETES_CLIENT_CONFIG }}" > ~/.kube/config