Skip to content

Commit

Permalink
url in outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispsheehan committed Jan 12, 2024
1 parent dcb4915 commit ba6e316
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ jobs:
- id: set-zip-path
run: echo "APP_ZIP_PATH=$(echo ${{ env.app_zip_path }})" >> $GITHUB_OUTPUT

dev:
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write
contents: read
outputs:
api_gateway_url: ${{ steps.action.outputs.API_GATEWAY_URL }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -99,10 +101,11 @@ jobs:
run: |
cd tf
terraform apply -auto-approve -var function-stage=dev -var lambda-zip-path=${{ needs.build.outputs.app_zip_path }}
echo "API_GATEWAY_URL=$(terraform output -raw api_gateway_url)" >> $GITHUB_OUTPUT
# get-url:
# needs: dev
# runs-on: ubuntu-latest
# steps:
# - run: echo random-number ${{ steps.action.outputs.api-url }}
# shell: bash
test:
needs: deploy
runs-on: ubuntu-latest
steps:
- run: echo url is ${{ needs.deploy.outputs.api_gateway_url }}
shell: bash

0 comments on commit ba6e316

Please sign in to comment.