File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 9
9
build_and_publish :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v3
13
12
- name : Checkout repository
13
+ uses : actions/checkout@v3
14
+
15
+ - name : Create .env file from secrets
16
+ run : |
17
+ echo "HOST=${{ secrets.HOST }}" >> .env
18
+ echo "PORT_APP=${{ secrets.PORT_APP }}" >> .env
19
+ echo "PORT_ENDPOINT=${{ secrets.PORT_ENDPOINT }}" >> .env
20
+ echo "MODEL_CKPT=${{ secrets.MODEL_CKPT }}" >> .env
21
+ echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> .env
22
+ echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> .env
23
+
24
+ - name : Login to GitHub Container Registry
25
+ run : |
26
+ echo ${{ secrets.QD_PAT }} | docker login ghcr.io -u ilanaliouchouche --password-stdin
27
+
28
+ - name : Build and push Docker images
14
29
run : |
15
- docker login -u ilanaliouchouche -p ${{ secrets.QD_PAT }} ghcr.io
16
30
docker build -t ghcr.io/mlengineershub/quickdraw:latest .
17
31
docker build -t ghcr.io/mlengineershub/quickdraw-endpoints:latest -f endpoints/Dockerfile .
18
32
docker push ghcr.io/mlengineershub/quickdraw:latest
You can’t perform that action at this time.
0 commit comments