From 4bb475f315a602f4d4492e459f29e5221a4cb595 Mon Sep 17 00:00:00 2001 From: Kim Pepper Date: Wed, 20 Sep 2023 14:25:47 +1000 Subject: [PATCH] Use skpr commands directly --- .github/workflows/deploy.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4d83cc0..a23eb90 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -54,12 +54,18 @@ jobs: fi echo "version=$version" >> $GITHUB_OUTPUT - name: Setup - uses: skpr/setup-action@main + shell: bash + run: | + cli_version=$(curl -sSL "https://api.github.com/repos/skpr/cli/releases/latest" | jq -r .tag_name) + curl -sSL https://github.com/skpr/cli/releases/download/${cli_version}/skpr_${cli_version:1}_linux_amd64.deb -o skpr-cli.deb + sudo dpkg -i skpr-cli.deb - name: Info id: skpr-info - uses: skpr/info-action@main - with: - env: ${{ inputs.env }} + shell: bash + run: | + domain=$(skpr info ${{ inputs.env }} | jq -r ".Ingress.Domain") + url=https://$domain + echo "url=$url" >> $GITHUB_OUTPUT - name: Package if: inputs.package run: skpr package ${{ steps.version.outputs.version }}