Skip to content

Commit 3774ebf

Browse files
committed
ci: update workflows config.
1 parent f7d26d2 commit 3774ebf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/setup-node@v3
2525
with:
2626
node-version: 18
27+
registry-url: 'https://registry.npmjs.org'
2728

2829
- run: ls -al
2930
working-directory: config
@@ -52,17 +53,19 @@ jobs:
5253
- run: ls -al
5354

5455
# Create Docker Image
55-
- uses: docker/setup-buildx-action@v3
56+
- name: Set up Docker Buildx
57+
uses: docker/setup-buildx-action@v2
58+
5659
- name: Login to Docker Hub
57-
uses: docker/login-action@v3
60+
uses: docker/login-action@v2
5861
with:
5962
username: ${{ secrets.DOCKER_USER }}
6063
password: ${{ secrets.DOCKER_PASSWORD }}
6164

6265
- name: Build and push image:latest
63-
uses: docker/build-push-action@v5
66+
uses: docker/build-push-action@v3
6467
with:
6568
push: true
6669
context: .
67-
# platforms: linux/amd64,linux/arm64
70+
platforms: linux/amd64,linux/arm64
6871
tags: ${{ secrets.DOCKER_USER }}/zh-hans.react.dev:latest

0 commit comments

Comments
 (0)