From 764addde21e56cae5ef0ce812526e33444723018 Mon Sep 17 00:00:00 2001 From: Eric Wittmann Date: Thu, 2 Nov 2023 15:17:54 -0400 Subject: [PATCH] Try another yaml editor action --- .github/workflows/deploy_latest_registry.yml | 47 ++++++++++++++------ 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy_latest_registry.yml b/.github/workflows/deploy_latest_registry.yml index 822995c..cc5d6bc 100644 --- a/.github/workflows/deploy_latest_registry.yml +++ b/.github/workflows/deploy_latest_registry.yml @@ -1,4 +1,4 @@ -name: Deploy Latest Registry (3scale-dev) +name: Deploy Latest Registry Docker Images (3scale-dev) on: workflow_dispatch: @@ -43,20 +43,41 @@ jobs: git pull - name: Update API Docker Image - uses: fjogeleit/yaml-update-action@v0.9.0 + id: yaml-action + uses: teunmooij/yaml@v1.0.0 with: - valueFile: 'repo/manifests/registry/base/deployment-api.yaml' - propertyPath: 'spec.template.spec.containers[:1].image' - value: ${{ env.REGISTRY_API_DOCKER_IMAGE }} - commitChange: false + from-file: 'repo/manifests/registry/base/deployment-api.yaml' + to-file: 'repo/manifests/registry/base/deployment-api.yaml' + merge: >- + { + "spec": { + "template": { + "spec": { + "containers": [ + { + "image": ${{ env.REGISTRY_API_DOCKER_IMAGE }} + } + ] + } + } + } + } - - name: Update UI Docker Image - uses: fjogeleit/yaml-update-action@v0.9.0 - with: - valueFile: 'repo/manifests/registry/base/deployment-ui.yaml' - propertyPath: 'spec.template.spec.containers[:1].image' - value: ${{ env.REGISTRY_UI_DOCKER_IMAGE }} - commitChange: false + # - name: Update API Docker Image + # uses: fjogeleit/yaml-update-action@v0.9.0 + # with: + # valueFile: 'repo/manifests/registry/base/deployment-api.yaml' + # propertyPath: 'spec.template.spec.containers.0.image' + # value: ${{ env.REGISTRY_API_DOCKER_IMAGE }} + # commitChange: false + + # - name: Update UI Docker Image + # uses: fjogeleit/yaml-update-action@v0.9.0 + # with: + # valueFile: 'repo/manifests/registry/base/deployment-ui.yaml' + # propertyPath: 'spec.template.spec.containers[:1].image' + # value: ${{ env.REGISTRY_UI_DOCKER_IMAGE }} + # commitChange: false - name: Cat Changed Deployment run: |