Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Try another yaml editor action
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWittmann committed Nov 2, 2023
1 parent cbbc2ab commit 764addd
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions .github/workflows/deploy_latest_registry.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Latest Registry (3scale-dev)
name: Deploy Latest Registry Docker Images (3scale-dev)

on:
workflow_dispatch:
Expand Down Expand Up @@ -43,20 +43,41 @@ jobs:
git pull
- name: Update API Docker Image
uses: fjogeleit/[email protected]
id: yaml-action
uses: teunmooij/[email protected]
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/[email protected]
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/[email protected]
# 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/[email protected]
# 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: |
Expand Down

0 comments on commit 764addd

Please sign in to comment.