Skip to content

Commit 6b18283

Browse files
authored
Update README.md
1 parent 3950068 commit 6b18283

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,37 @@ npx -y @diplodoc/cli -i ./ -o ./_site
2424
DOCKER_BUILDKIT=1 docker build --platform linux/amd64 -t MYCOMPANY/docs .
2525
docker push MYCOMPANY/docs:latest
2626
```
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+

0 commit comments

Comments
 (0)