Compare commits
4
Commits
42ea9d6531
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b7071a318 | ||
|
|
15e71e0e70 | ||
|
|
8c36460dea | ||
|
|
49f3d4b6a5 |
No files matched your search
@@ -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.1",
|
||||
"version": "0.3.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "envbao-admin",
|
||||
"version": "0.3.1",
|
||||
"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.1",
|
||||
"version": "0.3.3",
|
||||
"license": "BSD-3-Clause",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
Reference in new issue
Block a user