Skip to content

Commit

Permalink
Pass cloud URL to release test
Browse files Browse the repository at this point in the history
  • Loading branch information
e-mit committed Jun 26, 2024
1 parent b3fabe9 commit 58cd9fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
types:
- completed

env:
API_URL: ${{ vars.CLOUD_URL }}

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -20,10 +23,9 @@ jobs:
build-type: 'release'
- name: Release test
run: |
docker run -d -p 8080:8080 --name django_app --rm django_app:latest
docker run -d -p 8080:8080 --name django_app -e API_URL=$API_URL --rm django_app:latest
sleep 10
page=$(curl http://127.0.0.1:8080)
page=$(curl http://127.0.0.1:8080)
if ! grep -q "FastAPI-AWS-Django-GCP" <<< "$page"; then echo "Page GET failed." && exit 1; fi
- name: Save result
if: always()
Expand Down

0 comments on commit 58cd9fd

Please sign in to comment.