File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,37 @@ npx -y @diplodoc/cli -i ./ -o ./_site
24
24
DOCKER_BUILDKIT=1 docker build --platform linux/amd64 -t MYCOMPANY/docs .
25
25
docker push MYCOMPANY/docs:latest
26
26
```
27
+
28
+ ### GitHub Docker build Action
29
+
30
+ Add the following secrets into the secret storage
31
+
32
+ ```
33
+ DOCKERHUB_USERNAME
34
+ DOCKERHUB_TOKEN
35
+ ```
36
+
37
+ Add the following steps into ` .github/workflows/build.yml `
38
+
39
+ ``` yaml
40
+ -
41
+ name : Set up QEMU
42
+ uses : docker/setup-qemu-action@v3
43
+ -
44
+ name : Set up Docker Buildx
45
+ uses : docker/setup-buildx-action@v3
46
+ -
47
+ name : Login to Docker Hub
48
+ uses : docker/login-action@v3
49
+ with :
50
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
51
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
52
+ -
53
+ name : Build and push
54
+ uses : docker/build-push-action@v6
55
+ with :
56
+ context : .
57
+ push : true
58
+ tags : MYCOMPANY/docs:latest
59
+ ` ` `
60
+
You can’t perform that action at this time.
0 commit comments