We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca8c543 commit a1bc3a9Copy full SHA for a1bc3a9
.github/workflows/docker-image.yml
@@ -0,0 +1,25 @@
1
+name: Docker Build and Push
2
+
3
+on:
4
+ push:
5
+ branches: [ "master" ]
6
7
+jobs:
8
+ build-and-push:
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
15
+ - name: Login to Docker Hub
16
+ uses: docker/login-action@v2
17
+ with:
18
+ username: ${{ secrets.DOCKER_HUB_USERNAME }}
19
+ password: ${{ secrets.DOCKER_HUB_TOKEN }}
20
21
+ - name: Build and push
22
+ run: |
23
+ docker build -t uniapi:latest .
24
+ docker tag uniapi:latest ryoshi541/uniapi:latest
25
+ docker push ryoshi541/uniapi:latest
0 commit comments