Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit b4e5637

Browse files
authored
Update node.js.yml
1 parent ba64d1f commit b4e5637

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/node.js.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
name: Node.js CI
22

33
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
4+
release:
5+
types: [published]
86

97
jobs:
108
build:
119
runs-on: ubuntu-latest
1210
steps:
11+
-
12+
name: Set up QEMU
13+
uses: docker/setup-qemu-action@v1
14+
-
15+
name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v1
17+
-
18+
name: Login to DockerHub
19+
uses: docker/login-action@v1
20+
with:
21+
username: ${{ secrets.DOCKERHUB_USERNAME }}
22+
password: ${{ secrets.DOCKERHUB_TOKEN }}
1323
- uses: actions/checkout@v2
1424
- name: Use Node.js 15
1525
uses: actions/setup-node@v2-beta
@@ -18,3 +28,15 @@ jobs:
1828
check-latest: true
1929
- run: yarn
2030
- run: yarn run build
31+
-
32+
name: Build and push
33+
id: docker_build
34+
uses: docker/build-push-action@v2
35+
with:
36+
context: .
37+
file: ./Dockerfile
38+
push: true
39+
tags: leishi1313/aurora-admin-frontend-test:latest
40+
-
41+
name: Image digest
42+
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)