Skip to content

Commit

Permalink
[fix] Fix variable interpolation in the workflows (#1277)
Browse files Browse the repository at this point in the history
Fix variable interpolation in CD and release workflows

Signed-off-by: Ivan Polchenko <[email protected]>
  • Loading branch information
i5okie authored Jul 24, 2024
1 parent c68a56b commit 0460774
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/chart_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@ jobs:
CHART_VERSION: ${{ steps.chart_version.outputs.CHART_VERSION }}
run: |
cd trust-over-ip-configurations
yq e -i '.appVersion = $APP_VERSION' services/traction/charts/test/Chart.yaml
yq e -i '.version = $CHART_VERSION' services/traction/charts/test/Chart.yaml
yq e -i '.dependencies[0].version = $CHART_VERSION' services/traction/charts/test/Chart.yaml
yq e -i '.appVersion = env(APP_VERSION)' services/traction/charts/test/Chart.yaml
yq e -i '.version = env(CHART_VERSION)' services/traction/charts/test/Chart.yaml
yq e -i '.dependencies[0].version = env(CHART_VERSION)' services/traction/charts/test/Chart.yaml
- name: Update prod
env:
APP_VERSION: ${{ steps.chart_version.outputs.APP_VERSION }}
CHART_VERSION: ${{ steps.chart_version.outputs.CHART_VERSION }}
run: |
cd trust-over-ip-configurations
yq e -i '.appVersion = $APP_VERSION' services/traction/charts/prod/Chart.yaml
yq e -i '.version = $CHART_VERSION' services/traction/charts/prod/Chart.yaml
yq e -i '.dependencies[0].version = $CHART_VERSION' services/traction/charts/prod/Chart.yaml
yq e -i '.appVersion = env(APP_VERSION)' services/traction/charts/prod/Chart.yaml
yq e -i '.version = env(CHART_VERSION)' services/traction/charts/prod/Chart.yaml
yq e -i '.dependencies[0].version = env(CHART_VERSION)' services/traction/charts/prod/Chart.yaml
- name: Commit and Push to trust-over-ip-configurations Repo
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/on_push_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ jobs:
CHART_VERSION="${{ steps.chart_version.outputs.PUBLISHED_CHART_VERSION }}"
fi
yq e -i '.appVersion = $APP_VERSION' services/traction/charts/dev/Chart.yaml
yq e -i '.version = $CHART_VERSION' services/traction/charts/dev/Chart.yaml
yq e -i '.dependencies[0].version = $CHART_VERSION' services/traction/charts/dev/Chart.yaml
yq e -i '.traction.acapy.image.tag = $IMAGE_TAG' services/traction/charts/dev/values.yaml
yq e -i '.traction.tenant_proxy.image.tag = $IMAGE_TAG' services/traction/charts/dev/values.yaml
yq e -i '.traction.ui.image.tag = $IMAGE_TAG' services/traction/charts/dev/values.yaml
yq e -i '.appVersion = env(APP_VERSION)' services/traction/charts/dev/Chart.yaml
yq e -i '.version = env(CHART_VERSION)' services/traction/charts/dev/Chart.yaml
yq e -i '.dependencies[0].version = env(CHART_VERSION)' services/traction/charts/dev/Chart.yaml
yq e -i '.traction.acapy.image.tag = env(IMAGE_TAG)' services/traction/charts/dev/values.yaml
yq e -i '.traction.tenant_proxy.image.tag = env(IMAGE_TAG)' services/traction/charts/dev/values.yaml
yq e -i '.traction.ui.image.tag = env(IMAGE_TAG)' services/traction/charts/dev/values.yaml
- name: Commit and Push to trust-over-ip-configurations Repo
run: |
Expand Down

0 comments on commit 0460774

Please sign in to comment.