Merge pull request #108 from mchill/renovate/all-minor-patch #314
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Home Server | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup kubectl | |
run: | | |
curl -LO "https://storage.googleapis.com/kubernetes-release/release/v1.25.0/bin/linux/amd64/kubectl" | |
chmod +x kubectl | |
sudo mv kubectl /usr/local/bin/kubectl | |
mkdir -p ~/.kube | |
echo "${{ secrets.KUBECONFIG }}" | base64 --decode > ~/.kube/config | |
chmod 0600 ~/.kube/config | |
- name: Deploy server | |
working-directory: k8s | |
run: | | |
pushd ingresses && ./build.sh | kubectl apply --server-side --force-conflicts -f - && popd | |
pushd applications && ./build.sh | kubectl apply --server-side --force-conflicts -f - && popd |