fix kubernetes deploy
This commit is contained in:
parent
408cb6bf4e
commit
eb2e0b5549
1 changed files with 19 additions and 17 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue