Spaces:
Running
Running
fuxialexander
commited on
Commit
•
4885a6d
1
Parent(s):
822767d
clone submodules when build docker in github action
Browse files
.github/workflows/docker-build-and-push.yml
CHANGED
@@ -11,19 +11,23 @@ jobs:
|
|
11 |
|
12 |
steps:
|
13 |
- name: Checkout code
|
14 |
-
uses: actions/checkout@
|
|
|
|
|
|
|
|
|
15 |
|
16 |
- name: Set up Docker
|
17 |
-
uses: docker/setup-buildx-action@
|
18 |
|
19 |
- name: Login to DockerHub
|
20 |
-
uses: docker/login-action@
|
21 |
with:
|
22 |
username: ${{ secrets.DOCKER_USERNAME }}
|
23 |
password: ${{ secrets.DOCKER_PASSWORD }}
|
24 |
|
25 |
- name: Build and push Docker image
|
26 |
-
uses: docker/build-push-action@
|
27 |
with:
|
28 |
context: .
|
29 |
push: true
|
|
|
11 |
|
12 |
steps:
|
13 |
- name: Checkout code
|
14 |
+
uses: actions/checkout@v4
|
15 |
+
with:
|
16 |
+
submodules: 'recursive'
|
17 |
+
lfs: 'true'
|
18 |
+
|
19 |
|
20 |
- name: Set up Docker
|
21 |
+
uses: docker/setup-buildx-action@v3
|
22 |
|
23 |
- name: Login to DockerHub
|
24 |
+
uses: docker/login-action@v3
|
25 |
with:
|
26 |
username: ${{ secrets.DOCKER_USERNAME }}
|
27 |
password: ${{ secrets.DOCKER_PASSWORD }}
|
28 |
|
29 |
- name: Build and push Docker image
|
30 |
+
uses: docker/build-push-action@v3
|
31 |
with:
|
32 |
context: .
|
33 |
push: true
|