From 8d8d5987e78768a407389a6a136b5b721690e517 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Thu, 30 Sep 2021 14:44:37 +0800 Subject: [PATCH] update to 1.7.3 --- dockerfile | 24 ++++++++++++++++++++++++ package.json | 8 ++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/dockerfile b/dockerfile index 886f491a1..e0616ba26 100644 --- a/dockerfile +++ b/dockerfile @@ -31,3 +31,27 @@ CMD ["node", "server/server.js"] FROM release AS nightly RUN npm run mark-as-nightly + +# Upload the artifact to Github +FROM node:14-buster-slim AS upload-artifact +WORKDIR / +RUN apt update && \ + apt --yes install curl file + +ARG GITHUB_TOKEN +ARG TARGETARCH +ARG PLATFORM=debian +ARG VERSION=1.5.0 + + +COPY --from=build /app /app + +RUN FILE=uptime-kuma.tar.gz +RUN tar -czf $FILE app + +RUN curl \ + -H "Authorization: token $GITHUB_TOKEN" \ + -H "Content-Type: $(file -b --mime-type $FILE)" \ + --data-binary @$FILE \ + "https://uploads.github.com/repos/louislam/uptime-kuma/releases/$VERSION/assets?name=$(basename $FILE)" + diff --git a/package.json b/package.json index 1888fe899..87b30565f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uptime-kuma", - "version": "1.7.2", + "version": "1.7.3", "license": "MIT", "repository": { "type": "git", @@ -23,13 +23,13 @@ "tsc": "tsc", "vite-preview-dist": "vite preview --host", "build-docker": "npm run build-docker-debian && npm run build-docker-alpine", - "build-docker-alpine": "docker buildx build -f dockerfile-alpine --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:alpine -t louislam/uptime-kuma:1-alpine -t louislam/uptime-kuma:1.7.2-alpine --target release . --push", - "build-docker-debian": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma -t louislam/uptime-kuma:1 -t louislam/uptime-kuma:1.7.2 -t louislam/uptime-kuma:debian -t louislam/uptime-kuma:1-debian -t louislam/uptime-kuma:1.7.2-debian --target release . --push", + "build-docker-alpine": "docker buildx build -f dockerfile-alpine --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:alpine -t louislam/uptime-kuma:1-alpine -t louislam/uptime-kuma:1.7.3-alpine --target release . --push", + "build-docker-debian": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma -t louislam/uptime-kuma:1 -t louislam/uptime-kuma:1.7.3 -t louislam/uptime-kuma:debian -t louislam/uptime-kuma:1-debian -t louislam/uptime-kuma:1.7.3-debian --target release . --push", "build-docker-nightly": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:nightly --target nightly . --push", "build-docker-nightly-alpine": "docker buildx build -f dockerfile-alpine --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:nightly-alpine --target nightly . --push", "build-docker-nightly-amd64": "docker buildx build --platform linux/amd64 -t louislam/uptime-kuma:nightly-amd64 --target nightly . --push --progress plain", "upload-artifacts": "docker buildx build --platform linux/amd64 -t louislam/uptime-kuma:upload-artifact --build-arg GITHUB_TOKEN --target upload-artifact . --progress plain", - "setup": "git checkout 1.7.2 && npm install --legacy-peer-deps && node node_modules/esbuild/install.js && npm run build && npm prune", + "setup": "git checkout 1.7.3 && npm install --legacy-peer-deps && node node_modules/esbuild/install.js && npm run build && npm prune", "update-version": "node extra/update-version.js", "mark-as-nightly": "node extra/mark-as-nightly.js", "reset-password": "node extra/reset-password.js",