Skip to content

Commit

Permalink
fix: add good extension for stagings
Browse files Browse the repository at this point in the history
  • Loading branch information
noisegratte committed Aug 9, 2024
1 parent 1b9652f commit 121b14e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ on:
required: true

jobs:
set-url:
prepare-url:
name: Prepare URL
runs-on: ubuntu-latest
outputs:
url: ${{ steps.set-url.outputs.url }}
strategy:
matrix:
target: ${{ fromJson(inputs.targets) }}
steps:
- name: Set URL
id: set-url
Expand All @@ -45,19 +48,20 @@ jobs:
DOMAIN="com"
fi
echo "url=https://staging-${{ inputs.name }}.${{ matrix.target }}.$DOMAIN" >> $GITHUB_OUTPUT

deploy:
name: Deploy Staging
if: ${{ always() && inputs.name != '' }}
runs-on: self-hosted
timeout-minutes: 30
needs: set-url
needs: prepare-url
strategy:
matrix:
target: ${{ fromJson(inputs.targets) }}
environment:
name: staging-${{ inputs.name }} (${{ matrix.target }})
url: ${{ needs.set-url.outputs.url }}
url: ${{ needs.prepare-url.outputs.url }}
steps:
- name: Checkout Humanoid CI
uses: actions/checkout@v4
Expand Down

0 comments on commit 121b14e

Please sign in to comment.