mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
Test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user