From 12260e395dc8aff9e94622daf941194bcbaa1d00 Mon Sep 17 00:00:00 2001 From: Sujan Poudel Date: Mon, 9 Oct 2023 11:00:09 +0545 Subject: [PATCH] cd-deployment on tag (#38) --- .github/workflows/cd.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 7a51541..4e3c153 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -25,7 +25,6 @@ jobs: - uses: extractions/setup-just@v1 - name: Build and publish image with jib - if: ${{ github.ref == 'refs/heads/main' }} run: just build-push-image env: DOCKER_USER: ${{ github.actor }} @@ -46,14 +45,12 @@ jobs: name: Setup kubectl client - name: create KUBECONFIG - if: ${{ github.ref == 'refs/heads/main' }} run: | echo ${{ secrets.KUBE_CONFIG }} | base64 --decode > kube-config; chmod 600 kube-config; echo "KUBECONFIG=$(pwd)/kube-config" >> "$GITHUB_ENV" - name: Deploy on k8 - if: ${{ github.ref == 'refs/heads/main' }} run: | kubectl config current-context; just helm-upgrade;