-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
247 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Test Container | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Spin up container | ||
run: | | ||
docker compose up | ||
- name: Wait for container to be ready | ||
run: | | ||
attempts=0 | ||
while [ $attempts -lt 5 ]; do | ||
if curl http://localhost:5002; then | ||
echo "Success!" | ||
exit 0 | ||
fi | ||
attempts=$((attempts+1)) | ||
sleep 1 | ||
done | ||
echo "Failed after $attempts attempts" | ||
exit 1 | ||
- name: Make HTTP request | ||
run: | | ||
curl http://localhost:5002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# https://caddyserver.com/docs/caddyfile/concepts | ||
|
||
:{$PORT} { | ||
reverse_proxy /* fnano:6969 | ||
reverse_proxy /* fnano:5001 | ||
encode zstd gzip | ||
} |
Oops, something went wrong.