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 ); }