Skip to content

Commit a1bc3a9

Browse files
authored
Create docker-image.yml
1 parent ca8c543 commit a1bc3a9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)