Skip to content

Commit 662e920

Browse files
committed
pass license file as content
1 parent c58e899 commit 662e920

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/mlflow-ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
id: chart-version
167167
run: |
168168
CHART_VERSION=$(grep 'chartVersion:' applications/mlflow/kots/mlflow-chart.yaml | awk '{print $2}')
169-
echo "CHART_VERSION=$CHART_VERSION" >> $GITHUB_ENV
169+
echo "chart_version=$CHART_VERSION" >> $GITHUB_OUTPUT
170170
echo "Using MLflow chart version: $CHART_VERSION"
171171
172172
- name: Create release
@@ -177,7 +177,7 @@ jobs:
177177
api-token: ${{ secrets.REPLICATED_PLATFORM_EXAMPLES_TOKEN }}
178178
yaml-dir: applications/mlflow/kots/
179179
promote-channel: ci-automation-${{ github.run_id }}
180-
version: ${{ env.CHART_VERSION }}
180+
version: ${{ steps.chart-version.outputs.chart_version }}
181181

182182
- name: Create customer
183183
id: create-customer
@@ -239,14 +239,15 @@ jobs:
239239
id: chart-version
240240
run: |
241241
CHART_VERSION=$(grep 'chartVersion:' applications/mlflow/kots/mlflow-chart.yaml | awk '{print $2}')
242-
echo "CHART_VERSION=$CHART_VERSION" >> $GITHUB_ENV
242+
echo "chart_version=$CHART_VERSION" >> $GITHUB_OUTPUT
243243
echo "Using MLflow chart version: $CHART_VERSION"
244244
245245
# Download license using Replicated vendor-cli Docker container
246246
- name: Download license
247+
id: download-license
247248
uses: docker://replicated/vendor-cli:latest
248249
with:
249-
args: customer download-license --customer ${{ needs.create-release.outputs.customer-id }} --output /tmp/license.yaml
250+
args: customer download-license --customer ${{ needs.create-release.outputs.customer-id }}
250251
env:
251252
REPLICATED_API_TOKEN: ${{ secrets.REPLICATED_PLATFORM_EXAMPLES_TOKEN }}
252253
REPLICATED_APP: ${{ env.APP_SLUG }}
@@ -258,11 +259,11 @@ jobs:
258259
kubeconfig: ${{ steps.create-cluster.outputs.cluster-kubeconfig }}
259260
kots-version: latest
260261
app-slug: ${{ env.APP_SLUG }}
261-
app-version-label: ${{ env.CHART_VERSION }}
262-
license-file: /tmp/license.yaml
262+
app-version-label: ${{ steps.chart-version.outputs.chart_version }}
263+
license-file: ${{ steps.download-license.outputs.stdout }}
263264
namespace: default
264265
wait-duration: 10m
265-
shared-password: ${{ secrets.KOTS_SHARED_PASSWORD || 'replicatedmlflow' }}
266+
shared-password: replicatedmlflow
266267

267268
- name: Install troubleshoot
268269
run: curl -L https://github.com/replicatedhq/troubleshoot/releases/latest/download/support-bundle_linux_amd64.tar.gz | tar xzvf -

0 commit comments

Comments
 (0)