diff --git a/.github/workflows/build-and-deploy.yaml b/.github/workflows/build-and-deploy.yaml index 48226f8..2258673 100644 --- a/.github/workflows/build-and-deploy.yaml +++ b/.github/workflows/build-and-deploy.yaml @@ -38,17 +38,17 @@ jobs: - name: Set up Kubeconfig run: | mkdir -p ~/.kube - echo "${{ secrets.KUBECONFIG_BASE64 }}" | base64 -d > ~/.kube/config - chmod 600 ~/.kube/config - export KUBECONFIG=~/.kube/config + echo "${{ secrets.KUBECONFIG_BASE64 }}" | base64 -d > ${HOME}/.kube/config + chmod 600 ${HOME}/.kube/config + export KUBECONFIG=${HOME}/.kube/config kubectl version --client kubectl cluster-info - grep 'server:' ~/.kube/config + cat ${HOME}/.kube/config shell: bash - name: Deploy to Kubernetes run: | - export KUBECONFIG=~/.kube/config + export KUBECONFIG=${HOME}/.kube/config IMAGE_NAME="ghcr.io/${{ github.repository }}" kubectl set image deployment/homepage homepage=$IMAGE_NAME:latest -n web shell: bash