From 8650a8113a21e2ecb7e11cef95947b138c4d52f7 Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Mon, 23 Oct 2023 17:03:39 +0530 Subject: [PATCH] chore: add workflow to update images --- .github/workflows/docker.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3cf3802..f51b6a2 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -54,3 +54,21 @@ jobs: with: push: true tags: docker.io/flanksource/tenant-controller:v${{ env.RELEASE_VERSION }} + + - uses: actions/checkout@v3 + with: + repository: "${{ github.repository_owner }}/azure-production" + token: ${{ secrets.FLANKBOT }} + path: ./azure-production + + - name: Update image tags in azure-production repo + uses: mikefarah/yq@9b4082919bf50bb6be38742adf46f888e9f5683a # master + with: + cmd: yq -i e '.spec.template.spec.containers[0].image = "docker.io/flanksource/tenant-controller:v${{ env.RELEASE_VERSION }}"' azure-production/specs/bases/apps/tenant-controller/deployment.yml + + - name: Push changes to chart repo + uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0 + with: + commit_message: "chore: update tenant-controller image version to ${{ env.RELEASE_VERSION }}" + repository: ./azure-production + branch: main