Skip to content

Commit f38e95d

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

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/mlflow-ci.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,21 @@ jobs:
245245
# Download license using Replicated vendor-cli Docker container
246246
- name: Download license
247247
id: download-license
248-
uses: docker://replicated/vendor-cli:latest
249-
with:
250-
args: customer download-license --customer ${{ needs.create-release.outputs.customer-id }}
251-
env:
252-
REPLICATED_API_TOKEN: ${{ secrets.REPLICATED_PLATFORM_EXAMPLES_TOKEN }}
253-
REPLICATED_APP: ${{ env.APP_SLUG }}
248+
run: |
249+
# Create a temporary file to store the license
250+
mkdir -p /tmp/replicated
251+
# Run the vendor-cli command and capture its output
252+
docker run --rm \
253+
-e REPLICATED_API_TOKEN=${{ secrets.REPLICATED_PLATFORM_EXAMPLES_TOKEN }} \
254+
-e REPLICATED_APP=${{ env.APP_SLUG }} \
255+
replicated/vendor-cli:latest \
256+
customer download-license --customer ${{ needs.create-release.outputs.customer-id }} > /tmp/replicated/license.yaml
257+
# Read the license and set it as an output
258+
LICENSE_CONTENT=$(cat /tmp/replicated/license.yaml)
259+
# Use EOF delimiter for multi-line output
260+
echo "license<<EOF" >> $GITHUB_OUTPUT
261+
echo "$LICENSE_CONTENT" >> $GITHUB_OUTPUT
262+
echo "EOF" >> $GITHUB_OUTPUT
254263
255264
# Install using KOTS
256265
- name: KOTS Install
@@ -260,10 +269,10 @@ jobs:
260269
kots-version: latest
261270
app-slug: ${{ env.APP_SLUG }}
262271
app-version-label: ${{ steps.chart-version.outputs.chart_version }}
263-
license-file: ${{ steps.download-license.outputs.stdout }}
272+
license-file: ${{ steps.download-license.outputs.license }}
264273
namespace: default
265274
wait-duration: 10m
266-
shared-password: replicatedmlflow
275+
shared-password: 'replicatedmlflow'
267276

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

0 commit comments

Comments
 (0)