Compare commits
1 Commits
master
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
|
7ecddab9b6 |
@ -1,2 +0,0 @@
|
||||
node_modules
|
||||
npm-debug.log
|
@ -1,44 +0,0 @@
|
||||
name: Build & publish images
|
||||
|
||||
on: [push]
|
||||
|
||||
env:
|
||||
REGISTRY: git.plantroon.com
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: https://github.com/docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
with:
|
||||
images: git.plantroon.com/aux/keyserver
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
|
@ -1,9 +0,0 @@
|
||||
FROM node:16
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
COPY . .
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "node", "index.js" ]
|
@ -1,26 +0,0 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
mongodb:
|
||||
image: mongo
|
||||
volumes:
|
||||
- ./data/db:/data/db
|
||||
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
|
||||
networks:
|
||||
- backend
|
||||
env_file:
|
||||
- env.sample
|
||||
|
||||
keyserver:
|
||||
image: git.plantroon.com/aux/keyserver:master
|
||||
ports:
|
||||
- "12345:3000"
|
||||
depends_on:
|
||||
- mongodb
|
||||
networks:
|
||||
- backend
|
||||
env_file:
|
||||
- env.sample
|
||||
|
||||
networks:
|
||||
backend:
|
30
env.sample
30
env.sample
@ -1,30 +0,0 @@
|
||||
NODE_ENV=production
|
||||
LOG_LEVEL=debug
|
||||
PORT=3000
|
||||
PAPERTRAIL_HOST=''
|
||||
PAPERTRAIL_PORT=''
|
||||
|
||||
MONGO_URI=mongodb:27017/keyserver_db
|
||||
MONGO_USER=keyserver
|
||||
MONGO_PASS=changeme
|
||||
MONGO_INITDB_ROOT_USERNAME=keyserver
|
||||
MONGO_INITDB_ROOT_PASSWORD=changeme
|
||||
MONGO_INITDB_DATABASE=keyserver_db
|
||||
|
||||
SENDER_NAME=keyserver
|
||||
SENDER_EMAIL=changeme
|
||||
|
||||
SMTP_HOST=changeme
|
||||
SMTP_PORT=587
|
||||
SMTP_TLS=false
|
||||
|
||||
SMTP_STARTTLS=true
|
||||
SMTP_PGP=''
|
||||
SMTP_USER=''
|
||||
SMTP_PASS=''
|
||||
|
||||
HTTPS_UPGRADE=true
|
||||
HTTPS_KEY_PIN=''
|
||||
HTTPS_KEY_PIN_BACKUP=''
|
||||
|
||||
PUBLIC_KEY_PURGE_TIME=30
|
@ -1,12 +0,0 @@
|
||||
db.createUser(
|
||||
{
|
||||
user: process.env.MONGO_INITDB_ROOT_USERNAME,
|
||||
pwd: process.env.MONGO_INITDB_ROOT_PASSWORD,
|
||||
roles: [
|
||||
{
|
||||
role: "readWrite",
|
||||
db: process.env.MONGO_INITDB_DATABASE
|
||||
}
|
||||
]
|
||||
}
|
||||
);
|
14
package-lock.json
generated
14
package-lock.json
generated
@ -1305,12 +1305,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"json5": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
|
||||
"integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
|
||||
"requires": {
|
||||
"minimist": "^1.2.5"
|
||||
}
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
||||
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="
|
||||
},
|
||||
"just-extend": {
|
||||
"version": "4.2.1",
|
||||
@ -1623,11 +1620,6 @@
|
||||
"brace-expansion": "^1.1.7"
|
||||
}
|
||||
},
|
||||
"minimist": {
|
||||
"version": "1.2.5",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
|
||||
},
|
||||
"mocha": {
|
||||
"version": "8.4.0",
|
||||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-8.4.0.tgz",
|
||||
|
Loading…
Reference in New Issue
Block a user