Skip to content

Commit

Permalink
test this
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalAngel committed Apr 19, 2024
1 parent 66d0488 commit d42823a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ jobs:
run: docker-compose up -d

- name: Test if service is reachable
run: curl -s --retry 10 --retry-connrefused http://localhost:8000/
run: |
sleep 30
curl -s --retry 10 --retry-connrefused --insecure https://localhost:8000/
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Deploy template

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
on: [push]

jobs:
build:
Expand All @@ -26,3 +22,7 @@ jobs:
run: |
divio login ${{ secrets.DIVIO_TOKEN }}
divio app deploy test --remote-id ${{ secrets.DIVIO_WEBSITE_ID }}
- name: Test if website is reachable
run: |
curl -s --retry 10 --retry-connrefused ${{ secrets.WEBSITE_URL }}

0 comments on commit d42823a

Please sign in to comment.