This commit is contained in:
2026-04-14 14:42:54 +10:00
parent a8351dab76
commit 04aad674e4
+2 -11
View File
@@ -84,19 +84,10 @@ jobs:
BUILD_TIME=${{ steps.build_time.outputs.value }}
BUILD_VERSION=1.0.${{ github.run_number }}
- name: Deploy to Kubernetes
uses: wahyd4/kubectl-helm-action@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
with:
args: |-
# Render template → manifest with the actual image tag
sed 's|__IMAGE_TAG__|1.0.${{ github.run_number }}|g' k8s/manifest.template.yaml > k8s/manifest.yaml
# Apply Kubernetes manifests
kubectl --insecure-skip-tls-verify apply -n ${{ env.K8S_NAMESPACE }} -f k8s/manifest.yaml
- name: Commit updated manifest
run: |
# Render template → manifest with the actual image tag
sed 's|__IMAGE_TAG__|1.0.${{ github.run_number }}|g' k8s/manifest.template.yaml > k8s/manifest.yaml
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add k8s/manifest.yaml