Skip to content

Commit 5da1bbc

Browse files
author
kusuri12
authored
Merge pull request #17 from MoDeep11/chore/cicd
chore: write deploy.yml for cicd
2 parents 0916fce + 87a71dc commit 5da1bbc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: AI Server Deploy
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Docker Hub Login
15+
uses: docker/login-action@v2
16+
with:
17+
username: ${{ secrets.DOCKER_USERNAME }}
18+
password: ${{ secrets.DOCKER_PASSWORD }}
19+
20+
- name: Build and Push Image
21+
uses: docker/build-push-action@v4
22+
with:
23+
context: .
24+
push: true
25+
tags: ${{ secrets.DOCKER_USERNAME }}/hear-fastapi-app

0 commit comments

Comments
 (0)