Skip to content

Commit

Permalink
Enable dynamic URL output from deploy-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMillar-MOJ committed Oct 18, 2024
1 parent 0fb7572 commit a29f43f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ on:
jobs:
deploy:
name: Deploy
environment: ${{ inputs.environment }}
environment:
name: ${{ inputs.environment }}
url: ${{ env.DEPLOYMENT_URL }}
runs-on: ubuntu-latest
permissions:
id-token: write # This is required for requesting the JWT
Expand Down Expand Up @@ -69,6 +71,7 @@ jobs:
run: |
export CLEANED_BRANCH_NAME=$(echo ${BRANCH_NAME} | sed 's/^feature[-/]//' | sed 's:^\w*\/::' | tr -s ' _/[]().' '-' | tr '[:upper:]' '[:lower:]' | cut -c1-28 | sed 's/-$//')
export HOST_NAME=${CLEANED_BRANCH_NAME}-${DEV_HOST}
echo "DEPLOYMENT_URL=https://${HOST_NAME}" >> $GITHUB_ENV
helm upgrade ${CLEANED_BRANCH_NAME} \
${HELM_DIR} \
Expand Down

0 comments on commit a29f43f

Please sign in to comment.