From 3901fcd33c5c806e1123aa5bb6692ad2a1e5907f Mon Sep 17 00:00:00 2001 From: Kim Pepper Date: Thu, 21 Sep 2023 10:26:21 +1000 Subject: [PATCH] Add outputs --- .github/workflows/deploy.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6b4b1ec..1e98464 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,16 +40,16 @@ jobs: url: ${{ steps.skpr-info.outputs.url }} concurrency: ${{ inputs.env }} steps: - - name: Checkout Code + - name: ⬇️ Checkout Code uses: actions/checkout@v4 with: fetch-depth: 0 show-progress: false - - name: Install Skpr CLI + - name: ⚙️ Install Skpr CLI run: | gh release download --repo skpr/cli --pattern skpr_*_linux_amd64.deb -O skpr-cli.deb sudo dpkg -i skpr-cli.deb - - name: Get version + - name: 🔢 Get version id: version run: | if [ -n "${{ inputs.version }}" ]; then @@ -63,18 +63,20 @@ jobs: echo "::notice:: Using version $version from git describe" fi echo "version=$version" >> $GITHUB_OUTPUT - - name: Info + - name: ℹ️ Info id: skpr-info shell: bash run: | domain=$(skpr info ${{ inputs.env }} | jq -r ".Ingress.Domain") url=https://$domain echo "url=$url" >> $GITHUB_OUTPUT - - name: Package + - name: 📦 Package if: inputs.package run: skpr package ${{ steps.version.outputs.version }} - - name: Deploy + - name: 🚀 Deploy run: skpr deploy ${{ inputs.env }} ${{ steps.version.outputs.version }} - - name: Post-deploy + - name: 🧹 Post-deploy run: skpr exec ${{ inputs.env }} ${{ inputs.post_deploy }} - + outputs: + version: ${{ steps.version.outputs.version }} + url: ${{ steps.skpr-info.outputs.url }}