Skip to content

Commit 8614d4c

Browse files
committed
ci(github): reorder npm & docker deployment
1 parent 65899c2 commit 8614d4c

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ jobs:
2222
- name: Build release archives
2323
run: npm run release:build
2424

25+
# Publish to DockerHub
26+
- name: Docker Login
27+
uses: docker/login-action@v3
28+
with:
29+
username: ${{ secrets.DOCKERHUB_USERNAME }}
30+
password: ${{ secrets.DOCKERHUB_TOKEN }}
31+
32+
- name: Docker Setup Buildx
33+
uses: docker/setup-buildx-action@v3
34+
35+
- name: Docker Build & Push (multi-arch)
36+
run: npm run docker:buildx
37+
2538
# Publish to NPM
2639
- name: Setup Node for npmjs
2740
uses: actions/setup-node@v4
@@ -56,15 +69,3 @@ jobs:
5669
5770
- name: Clean build
5871
run: npm run release:clean
59-
60-
- name: Docker Login
61-
uses: docker/login-action@v3
62-
with:
63-
username: ${{ secrets.DOCKERHUB_USERNAME }}
64-
password: ${{ secrets.DOCKERHUB_TOKEN }}
65-
66-
- name: Docker Setup Buildx
67-
uses: docker/setup-buildx-action@v3
68-
69-
- name: Docker Build & Push (multi-arch)
70-
run: npm run docker:buildx

0 commit comments

Comments
 (0)