jhj0517 commited on
Commit
27c35ce
1 Parent(s): 391fac3

add docker hub publish action

Browse files
.github/workflows/publish-docker.yml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Publish to Docker Hub
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ build-and-push:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Log in to Docker Hub
14
+ uses: docker/login-action@v2
15
+ with:
16
+ username: ${{ secrets.DOCKER_USERNAME }}
17
+ password: ${{ secrets.DOCKER_PASSWORD }}
18
+
19
+ - name: Checkout repository
20
+ uses: actions/checkout@v3
21
+
22
+ - name: Set up Docker Buildx
23
+ uses: docker/setup-buildx-action@v3
24
+
25
+ - name: Set up QEMU
26
+ uses: docker/setup-qemu-action@v3
27
+
28
+ - name: Build and push Docker image
29
+ uses: docker/build-push-action@v5
30
+ with:
31
+ context: .
32
+ file: ./Dockerfile
33
+ push: true
34
+ tags: ${{ secrets.DOCKER_USERNAME }}/whisper-webui:latest
35
+
36
+ - name: Log out of Docker Hub
37
+ run: docker logout