Compare commits
6
Commits
c6bb5b132a
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b7071a318 | ||
|
|
15e71e0e70 | ||
|
|
8c36460dea | ||
|
|
49f3d4b6a5 | ||
|
|
42ea9d6531 | ||
|
|
06366cd106 |
No files matched your search
@@ -16,7 +16,7 @@ jobs:
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
- run: npm audit --audit-level=high
|
||||
- run: npm audit --omit=dev --audit-level=high
|
||||
- run: npm test
|
||||
- run: npm run build
|
||||
- uses: actions/upload-artifact@v3
|
||||
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
- run: npm audit --audit-level=high
|
||||
- run: npm audit --omit=dev --audit-level=high
|
||||
- run: npm test
|
||||
- run: npm run build
|
||||
|
||||
@@ -66,7 +66,8 @@ jobs:
|
||||
- name: Build and push
|
||||
run: |
|
||||
VERSION="${GITHUB_REF_NAME#v}"
|
||||
docker build -t "$IMAGE:$VERSION" -t "$IMAGE:latest" .
|
||||
# The runner may be arm64 (a Mac); the deploy host is amd64, so always build for it.
|
||||
docker build --platform linux/amd64 -t "$IMAGE:$VERSION" -t "$IMAGE:latest" .
|
||||
docker push "$IMAGE:$VERSION"
|
||||
docker push "$IMAGE:latest"
|
||||
|
||||
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
FROM node:22-alpine AS build
|
||||
# The build stage only emits static files, so it runs on the builder's own architecture; only the nginx stage
|
||||
# takes the target platform (linux/amd64, set in the release workflow). No emulation needed.
|
||||
FROM --platform=$BUILDPLATFORM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "envbao-admin",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "envbao-admin",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.3",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "^5.104.5",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "envbao-admin",
|
||||
"private": true,
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.3",
|
||||
"license": "BSD-3-Clause",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
Reference in new issue
Block a user