5c5980e0fc
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [azure/k8s-deploy](https://github.com/azure/k8s-deploy) | action | major | `v5.1.0` → `v6.0.0` | --- ### Release Notes <details> <summary>azure/k8s-deploy (azure/k8s-deploy)</summary> ### [`v6.0.0`](https://github.com/Azure/k8s-deploy/releases/tag/v6.0.0) [Compare Source](https://github.com/azure/k8s-deploy/compare/v5.1.0...v6.0.0) ##### Changed - [#​504](https://github.com/azure/k8s-deploy/issues/504) [Update Node.js runtime from node20 to node24](https://github.com/Azure/k8s-deploy/pull/504) - [#​500](https://github.com/azure/k8s-deploy/issues/500) [Update action version references in README to latest majors](https://github.com/Azure/k8s-deploy/pull/500) ##### Security - [#​506](https://github.com/azure/k8s-deploy/issues/506) [Bump undici from 6.23.0 to 6.24.1](https://github.com/Azure/k8s-deploy/pull/506) - [#​513](https://github.com/azure/k8s-deploy/issues/513) [Bump vite from 8.0.3 to 8.0.5](https://github.com/Azure/k8s-deploy/pull/513) - [#​509](https://github.com/azure/k8s-deploy/issues/509) [Bump the actions group across 1 directory with 4 updates](https://github.com/Azure/k8s-deploy/pull/509) - [#​510](https://github.com/azure/k8s-deploy/issues/510) [Bump the actions group across 1 directory with 2 updates](https://github.com/Azure/k8s-deploy/pull/510) - [#​511](https://github.com/azure/k8s-deploy/issues/511) [Bump vitest from 4.1.1 to 4.1.2](https://github.com/Azure/k8s-deploy/pull/511) - [#​514](https://github.com/azure/k8s-deploy/issues/514) [Bump the actions group with 2 updates](https://github.com/Azure/k8s-deploy/pull/514) - [#​501](https://github.com/azure/k8s-deploy/issues/501) [Bump @​types/node from 25.3.3 to 25.4.0](https://github.com/Azure/k8s-deploy/pull/501) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My41LjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImFjdGlvbiIsImRlcHMiXX0=--> Reviewed-on: https://gitea.t000-n.de/t.behrendt/k/pulls/66 Reviewed-by: t.behrendt <t.behrendt@noreply.localhost> Co-authored-by: Renovate Bot <renovate@t00n.de> Co-committed-by: Renovate Bot <renovate@t00n.de>
125 lines
4.6 KiB
YAML
125 lines
4.6 KiB
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
check-changes:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
node-labels: ${{ steps.filter.outputs.node-labels }}
|
|
coredns: ${{ steps.filter.outputs.coredns }}
|
|
traefik: ${{ steps.filter.outputs.traefik }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
node-labels:
|
|
- 'node-labels/**'
|
|
coredns:
|
|
- 'coredns/**'
|
|
traefik:
|
|
- 'traefik/**'
|
|
|
|
deploy-node-labels:
|
|
runs-on: ubuntu-latest
|
|
needs: check-changes
|
|
if: ${{ needs.check-changes.outputs.node-labels == 'true' || github.event_name == 'workflow_dispatch' }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: azure/setup-kubectl@829323503d1be3d00ca8346e5391ca0b07a9ab0d # v5.1.0
|
|
- uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
|
|
with:
|
|
method: kubeconfig
|
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
|
- name: Deploy
|
|
run: |
|
|
kubectl apply --server-side --field-manager=t000-n -f node-labels
|
|
|
|
deploy-coredns:
|
|
runs-on: ubuntu-latest
|
|
needs: check-changes
|
|
if: ${{ needs.check-changes.outputs.coredns == 'true' || github.event_name == 'workflow_dispatch' }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: azure/setup-kubectl@829323503d1be3d00ca8346e5391ca0b07a9ab0d # v5.1.0
|
|
- uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
|
|
with:
|
|
method: kubeconfig
|
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
|
- name: Deploy
|
|
run: |
|
|
kubectl apply -n kube-system -f coredns
|
|
- name: Restart coredns
|
|
run: |
|
|
kubectl -n kube-system rollout restart deployment coredns
|
|
|
|
deploy-traefik:
|
|
runs-on: ubuntu-latest
|
|
needs: check-changes
|
|
if: ${{ needs.check-changes.outputs.traefik == 'true' || github.event_name == 'workflow_dispatch' }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: azure/setup-kubectl@829323503d1be3d00ca8346e5391ca0b07a9ab0d # v5.1.0
|
|
- uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
|
|
with:
|
|
method: kubeconfig
|
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
|
- name: Set ionos api credentials
|
|
uses: azure/k8s-create-secret@6e0ba8047235646753f2a3a3b359b4d0006ff218 # v5.0.1
|
|
with:
|
|
namespace: kube-system
|
|
secret-name: ionos-api-credentials
|
|
secret-type: generic
|
|
data: |
|
|
{
|
|
"apiKey": "${{ secrets.IONOS_API_KEY }}"
|
|
}
|
|
- name: Set admin basic auth credentials
|
|
uses: azure/k8s-create-secret@6e0ba8047235646753f2a3a3b359b4d0006ff218 # v5.0.1
|
|
with:
|
|
namespace: kube-system
|
|
secret-name: admin-basic-auth-credentials
|
|
secret-type: Opaque
|
|
data: |
|
|
{
|
|
"auth": "${{ secrets.ADMIN_BASIC_AUTH_CREDENTIALS }}"
|
|
}
|
|
- name: Deploy
|
|
uses: azure/k8s-deploy@c7ebd0d5f39477a23f1b5dea0f52e6db04adf28e # v6.0.0
|
|
with:
|
|
action: deploy
|
|
manifests: "traefik/"
|
|
strategy: basic
|
|
namespace: kube-system
|
|
|
|
deploy-docker-registry-secret:
|
|
runs-on: ubuntu-latest
|
|
needs: check-changes
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- uses: azure/setup-kubectl@829323503d1be3d00ca8346e5391ca0b07a9ab0d # v5.1.0
|
|
- uses: azure/k8s-set-context@89b837d75b40a7bd2ddafde837473c212db8b313 # v5.0.0
|
|
with:
|
|
method: kubeconfig
|
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
|
- name: Set docker registry credentials
|
|
run: |
|
|
kubectl create secret docker-registry regcred-dockerhub \
|
|
--docker-server=https://index.docker.io/v1/ \
|
|
--docker-username="${{ secrets.DOCKER_USERNAME }}" \
|
|
--docker-password="${{ secrets.DOCKER_PASSWORD }}" \
|
|
--docker-email="${{ secrets.DOCKER_EMAIL }}" \
|
|
--namespace=default \
|
|
--dry-run=client -o yaml | kubectl apply -f -
|
|
- name: Configure image pull secret globally
|
|
run: |
|
|
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "regcred-dockerhub"}]}'
|