Skip to content

Commit fbcb1fb

Browse files
committed
doc: update workflows config.
1 parent fd87225 commit fbcb1fb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches:
55
- main
66

7+
env:
8+
BUILDX_VERSION: latest
9+
BUILDKIT_IMAGE: wcjiang/html-tutorial
10+
711
jobs:
812
build:
913
runs-on: ubuntu-18.04
@@ -86,6 +90,8 @@ jobs:
8690
```
8791
8892
# Create Docker Image
93+
- name: Set up Docker Buildx
94+
uses: docker/setup-buildx-action@v2
8995
- name: Login to Docker Hub
9096
uses: docker/login-action@v2
9197
with:
@@ -96,7 +102,8 @@ jobs:
96102
uses: docker/build-push-action@v3
97103
with:
98104
push: true
99-
context: .
105+
file: ./Dockerfile
106+
platforms: linux/amd64,linux/arm64
100107
tags: ${{ secrets.DOCKER_USER }}/html-tutorial:latest
101108

102109
# - name: Build docs image

0 commit comments

Comments
 (0)