diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 1aadc7f..3aa2938 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -42,10 +42,8 @@ jobs: pip install -r requirements.txt - name: Update image tag in values.yaml - env: - IMAGE_TAG: ${{ env.SHA_SHORT }} run: | - yq e -i '.environments.dev.image = "kennyd3d/hello-world-app:${{ env.IMAGE_TAG }}"' ./CICD/hello-world-app/values.yaml + yq e -i '.environments.dev.image = "kennyd3d/hello-world-app:${{ env.SHA_SHORT }}"' ./CICD/hello-world-app/values.yaml - name: Build and Push Docker image uses: docker/build-push-action@v3 @@ -59,7 +57,7 @@ jobs: git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git add ./CICD/hello-world-app/values.yaml - git commit -m "Update k8 deployment" + git commit -m "[BOT] Update k8 deployment" - name: Push changes uses: ad-m/github-push-action@master diff --git a/CICD/hello-world-app/values.yaml b/CICD/hello-world-app/values.yaml index e15e624..88c570c 100644 --- a/CICD/hello-world-app/values.yaml +++ b/CICD/hello-world-app/values.yaml @@ -1,4 +1,7 @@ namespace: dev +image: kennyd3d/hello-world-app:dev + +# Overrides environments: dev: namespace: dev