-
Notifications
You must be signed in to change notification settings - Fork 0
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
13 changed files
with
284 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Test, build and deploy server | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-deploy: | ||
name: Build, test and deploy to GitHub Container registry | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.draft == false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
architecture: x64 | ||
|
||
- name: Install dependencies | ||
run: |- | ||
pipx install poetry==1.7.1 | ||
pipx install nox==2022.11.21 | ||
pipx inject nox nox-poetry | ||
- name: Build image and test with nox | ||
run: |- | ||
nox | ||
env: | ||
JWT_SECRET: ${{ secrets.JWT_SECRET }} | ||
ADMIN_USERNAME: ${{ secrets.ADMIN_USERNAME }} | ||
ADMIN_PASSWORD: ${{ secrets.ADMIN_PASSWORD }} | ||
|
||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
||
- name: Tag and publish docker image to Github Container registry | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: |- | ||
docker tag ghcr.io/langrenn-sprint/vision-ai-service:test ghcr.io/langrenn-sprint/vision-ai-service:latest | ||
docker rmi ghcr.io/langrenn-sprint/vision-ai-service:test | ||
docker push ghcr.io/langrenn-sprint/vision-ai-service:latest |
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 |
---|---|---|
|
@@ -139,3 +139,4 @@ dmypy.json | |
*.mp4 | ||
*.pt | ||
.DS_Store | ||
Finish_line_config.jpg |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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,8 +1,7 @@ | ||
{ | ||
"20240204 20:32:36": "New trigger line photo", | ||
"20240204 20:32:35": "Updated config: DRAW_TRIGGER_LINE to false", | ||
"20240204 20:32:03": "Updated config: VIDEO_ANALYTICS_START to false", | ||
"20240204 20:31:58": "Updated config: VIDEO_ANALYTICS_START to false", | ||
"20240204 20:31:53": "New trigger line photo", | ||
"20240204 19:55:48": "Updated config: VIDEO_ANALYTICS_RUNNING to true" | ||
} | ||
[ | ||
"15:35:52 Trigger line photo created", | ||
"15:35:49 Starter AI video detection.", | ||
"15:35:29 Vision AI is ready.", | ||
"15:28:56 Trigger line photo created", | ||
"15:28:21 Starter AI video detection.", | ||
|
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