Skip to content

Commit 03bba5b

Browse files
workflows with secrets vars automated
1 parent 0edc5a9 commit 03bba5b

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/publish-ghcr.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,24 @@ jobs:
99
build_and_publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
1312
- 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
1429
run: |
15-
docker login -u ilanaliouchouche -p ${{ secrets.QD_PAT }} ghcr.io
1630
docker build -t ghcr.io/mlengineershub/quickdraw:latest .
1731
docker build -t ghcr.io/mlengineershub/quickdraw-endpoints:latest -f endpoints/Dockerfile .
1832
docker push ghcr.io/mlengineershub/quickdraw:latest

0 commit comments

Comments
 (0)