File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish Docker Image
2
- on : [push , pull_request]
2
+ on : [release , pull_request]
3
3
jobs :
4
4
push_to_registry :
5
5
runs-on : ubuntu-20.04
10
10
- name : Log in to Docker Hub
11
11
uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
12
12
with :
13
- username : ${{ secrets.DOCKER_HUB_USER }}
13
+ username : ${{ secrets.cl }}
14
14
password : ${{ secrets.DOCKER_HUB_PASSWORD }}
15
15
16
16
- name : Extract metadata (tags, labels) for Docker
Original file line number Diff line number Diff line change
1
+ import logging
2
+
1
3
import uvicorn
2
4
from fastapi import FastAPI , Request
3
5
from fastapi .staticfiles import StaticFiles
4
6
from fastapi .templating import Jinja2Templates
5
7
6
8
from code import data
7
9
10
+ logging .basicConfig (level = logging .DEBUG , format = '%(asctime)s %(message)s' )
11
+
12
+ logging .info ("Stating Covid19 application" )
13
+
8
14
app = FastAPI ()
9
15
app .mount ("/static" , StaticFiles (directory = "templates/static" ), name = "static" )
10
16
templates = Jinja2Templates (directory = "templates" )
You can’t perform that action at this time.
0 commit comments