fix kubernetes deploy
Some checks failed
/ build-container (push) Successful in 1m50s
/ Deploy to kubernetes (push) Failing after 8s

This commit is contained in:
Finn 2025-01-17 20:36:44 -08:00
parent 408cb6bf4e
commit eb2e0b5549

View file

@ -27,20 +27,22 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/main' }}
# deploy:
# name: Deploy to kubernetes
# runs-on: ubuntu-latest
# container:
# image: git.devhack.net/devhack/containers/deployer:latest
# needs: build-container
# if: github.ref == 'refs/heads/main'
# steps:
# - uses: actions/checkout@v4
# - name: deploy
# run: |
# set -euo pipefail
# echo "${{ secrets.KUBERNETES_CLIENT_CONFIG }}" > ~/.kube/config
# set -x
# tag=$(echo "${{ needs.build-container.outputs.tags }}" | tail -n1)
# sed -i "s#image: git.janky.solutions/finn/matrix-bridge-meshtastic:.*#image: ${tag}#" deploy/statefulset.yaml
# kubectl apply -f deploy/
deploy:
name: Deploy to kubernetes
runs-on: ubuntu-latest
container:
image: git.devhack.net/devhack/containers/deployer:latest
needs: build-container
# if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
with:
repository: https://git.janky.solutions/JankySolutions/infra.git
- name: deploy
run: |
set -exuo pipefail
tag=$(echo "${{ needs.build-container.outputs.tags }}" | tail -n1)
sed -i "s#image: git.janky.solutions/finn/matrix-bridge-meshtastic:.*#image: ${tag}#" k8s/meshtastic/statefulset.yaml
git commit -am "bump matrix-bridge-meshtastic to ${tag}"
git push