From df28d3c411f65448884323dc2abdfbeb0e8d4e69 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sat, 29 Jun 2024 12:46:52 +0200 Subject: [PATCH] Add Earthfile and update version --- Earthfile | 26 ++++++++++++++++++++++++++ package.json | 3 +-- src/components/Footer.tsx | 2 +- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 Earthfile diff --git a/Earthfile b/Earthfile new file mode 100644 index 0000000..86c6d2b --- /dev/null +++ b/Earthfile @@ -0,0 +1,26 @@ +VERSION 0.7 + +docker-multi: + BUILD --platform linux/amd64 --platform linux/arm64 +docker + +build: + FROM node:lts + WORKDIR /build + COPY . . + RUN npm config set registry https://npm.hibas123.de + RUN npm install + RUN npm run build + SAVE ARTIFACT dist secure_notes_files + +docker: + FROM busybox:1.36 + WORKDIR /app + + COPY --platform=linux/amd64 +build/secure_notes_files /app/ + + + CMD ["busybox", "httpd", "-f", "-v", "-p", "3001", "-h", "/app"] + + ARG EARTHLY_TARGET_TAG + ARG TAG=$EARTHLY_TARGET_TAG + SAVE IMAGE --push git.hibas.dev/openserver/secure_notes:$TAG \ No newline at end of file diff --git a/package.json b/package.json index f392e10..ee5da67 100755 --- a/package.json +++ b/package.json @@ -1,8 +1,7 @@ { "name": "@hibas123/securenotes2", - "version": "2.0.0-alpha.1", + "version": "2.0.2", "description": "", - "main": "index.js", "scripts": { "build": "parcel build src/index.html", "dev": "parcel src/index.html" diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 7367db7..4c9a320 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -72,7 +72,7 @@ export class Footer extends Component< Welcome {Notes.name} - v1.7 + v2.0.2 ); }