Commit 702c41b9 authored by Paul Colin Hennig's avatar Paul Colin Hennig
Browse files

v

parent e0aff4c7
image: node:latest
image: docker:latest
stages:
- docker-build
docker-build:
stage: docker-build
image: docker:latest
before_script:
- docker login -u "docker" -p "$CI_REGISTRY_PASSWORD" https://$CI_REGISTRY
......
File mode changed from 100644 to 100755
FROM node:latest
FROM node:alpine
COPY . /doc-host/
WORKDIR /doc-host/
RUN yarn
......
......@@ -8,7 +8,7 @@ const tar = require('tar-fs');
const streamBuffers = require('stream-buffers');
const fs=require("fs")
//curl -F file=@index.tar "http://localhost:3000/?project-name=mailcow-api" ; echo
//curl -F file=@index.tar "http://localhost:3000/?project-name=mailcow-api&token=" ; echo
const u=multer({ storage:multer.memoryStorage()}).single('file');
app.post('/', u,(req, res) => {
if (process.env.TOKEN && req.query.token !== process.env.TOKEN) {
......
......@@ -7,7 +7,7 @@
"type": "git",
"url": "http://git.y.gy/firstdorsal/doc-host.git"
},
"homepage": "https://firstdorsal.eu/doc/doc-host/",
"homepage": "https://doc.y.gy/doc-host/",
"author": "Paul Colin Hennig",
"license": "MIT",
"dependencies": {
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment