Initial commit
commit
afd314ff97
|
@ -0,0 +1,33 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: build
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: pull
|
||||||
|
commands:
|
||||||
|
- git submodule init
|
||||||
|
- git submodule update
|
||||||
|
- cd papermerge
|
||||||
|
- git checkout $(git ls-remote -q --tags --refs --sort="committerdate" | tail -n1 | cut -d "/" -f3-)
|
||||||
|
- cd ..
|
||||||
|
- name: build
|
||||||
|
commands:
|
||||||
|
- cd papermerge/docker/1.4/
|
||||||
|
- docker build -t gcrkrause/papermerge-app:$(git submodule status | awk -F"[()]" '{print $2}') app.dockerfile --no-cache
|
||||||
|
- docker tag gcrkrause/papermerge-app:$(git submodule status | awk -F"[()]" '{print $2}') gcrkrause/papermerge-app:latest
|
||||||
|
- name: push
|
||||||
|
environment:
|
||||||
|
USERNAME:
|
||||||
|
from_secret: docker-hub-user
|
||||||
|
PASSWORD:
|
||||||
|
from_secret: docker-hub-pw
|
||||||
|
commands:
|
||||||
|
- docker login -u $USERNAME -p $PASSWORD
|
||||||
|
- docker push gcrkrause/papermerge-app:latest
|
||||||
|
- docker push gcrkrause/papermerge-app:$(git submodule status | awk -F"[()]" '{print $2}')
|
||||||
|
- docker image prune -a -f
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "papermerge"]
|
||||||
|
path = papermerge
|
||||||
|
url = https://github.com/ciur/papermerge.git
|
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
cryptpad:
|
||||||
|
image: "promasu/cryptpad:latest"
|
||||||
|
hostname: cryptpad
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- ./data/blob:/cryptpad/blob
|
||||||
|
- ./data/block:/cryptpad/block
|
||||||
|
- ./customize:/cryptpad/customize
|
||||||
|
- ./data/config.js:/cryptpad/config/config.js
|
||||||
|
- ./data/data:/cryptpad/data
|
||||||
|
- ./data/files:/cryptpad/datastore
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
- "3001:3001"
|
||||||
|
|
||||||
|
expose:
|
||||||
|
- "3000"
|
||||||
|
- "3001"
|
||||||
|
|
||||||
|
ulimits:
|
||||||
|
nofile:
|
||||||
|
soft: 1000000
|
||||||
|
hard: 1000000
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit fcee465c30f7d781e46dce3795a062852178c23e
|
Loading…
Reference in New Issue