Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit 9922bae

Browse files
author
JWittmeyer
committed
Initial commit
0 parents  commit 9922bae

File tree

265 files changed

+41690
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+41690
-0
lines changed

.browserslistrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR
17+
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

.drone.yml

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
kind: pipeline
2+
type: docker
3+
name: amd64
4+
5+
platform:
6+
arch: amd64
7+
8+
steps:
9+
- name: build and publish
10+
image: plugins/docker
11+
settings:
12+
registry: registry.dev.onetask.ai
13+
username:
14+
from_secret: docker_username
15+
password:
16+
from_secret: docker_password
17+
repo: "registry.dev.onetask.ai/${DRONE_REPO}"
18+
tags: ["${DRONE_COMMIT_SHA}", "${DRONE_COMMIT_BRANCH}"]
19+
cache_from:
20+
- "registry.dev.onetask.ai/${DRONE_REPO}:dev"
21+
- "registry.dev.onetask.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}"
22+
- name: trigger update
23+
image: appleboy/drone-ssh
24+
settings:
25+
host: app.dev.onetask.ai
26+
username:
27+
from_secret: ssh_user
28+
key:
29+
from_secret: ssh_key
30+
ssh_passphrase:
31+
from_secret: ssh_passphrase
32+
script:
33+
- /bin/sh ./trigger_dev_deployment.sh
34+
35+
trigger:
36+
event:
37+
- push
38+
39+
---
40+
kind: pipeline
41+
type: docker
42+
name: arm64
43+
44+
platform:
45+
arch: arm64
46+
47+
steps:
48+
- name: build and publish
49+
image: plugins/docker
50+
settings:
51+
registry: registry.dev.onetask.ai
52+
username:
53+
from_secret: docker_username
54+
password:
55+
from_secret: docker_password
56+
repo: "registry.dev.onetask.ai/${DRONE_REPO}"
57+
tags: ["${DRONE_COMMIT_SHA}_arm64", "${DRONE_COMMIT_BRANCH}_arm64"]
58+
cache_from:
59+
- "registry.dev.onetask.ai/${DRONE_REPO}:dev_arm64"
60+
- "registry.dev.onetask.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}_arm64"
61+
62+
trigger:
63+
branch:
64+
- dev
65+
- beta-v2
66+
event:
67+
- push
68+
69+
---
70+
kind: pipeline
71+
type: docker
72+
name: amd64-dockerhub
73+
74+
platform:
75+
arch: amd64
76+
77+
steps:
78+
- name: build and publish
79+
image: plugins/docker
80+
settings:
81+
username:
82+
from_secret: dockerhub_username
83+
password:
84+
from_secret: dockerhub_password
85+
repo: "kernai/${DRONE_REPO_NAME}"
86+
tag: "${DRONE_TAG}-drone-amd64"
87+
88+
trigger:
89+
event:
90+
- tag
91+
92+
---
93+
kind: pipeline
94+
type: docker
95+
name: arm64-dockerhub
96+
97+
platform:
98+
arch: arm64
99+
100+
steps:
101+
- name: build and publish
102+
image: plugins/docker
103+
settings:
104+
username:
105+
from_secret: dockerhub_username
106+
password:
107+
from_secret: dockerhub_password
108+
repo: "kernai/${DRONE_REPO_NAME}"
109+
tag: "${DRONE_TAG}-drone-arm64"
110+
111+
trigger:
112+
event:
113+
- tag
114+
115+
---
116+
kind: pipeline
117+
name: manifest-version
118+
steps:
119+
- name: manifest
120+
image: plugins/manifest
121+
settings:
122+
spec: drone-manifest-version.tmpl
123+
tag: "${DRONE_TAG}"
124+
ignore_missing: true
125+
username:
126+
from_secret: dockerhub_username
127+
password:
128+
from_secret: dockerhub_password
129+
130+
depends_on:
131+
- amd64-dockerhub
132+
- arm64-dockerhub
133+
134+
trigger:
135+
event:
136+
- tag
137+
138+
---
139+
kind: pipeline
140+
name: manifest-latest
141+
steps:
142+
- name: manifest
143+
image: plugins/manifest
144+
settings:
145+
spec: drone-manifest-latest.tmpl
146+
tag: "${DRONE_TAG}"
147+
ignore_missing: true
148+
username:
149+
from_secret: dockerhub_username
150+
password:
151+
from_secret: dockerhub_password
152+
153+
depends_on:
154+
- manifest-version
155+
156+
trigger:
157+
event:
158+
- tag

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
9+
10+
# dependencies
11+
/node_modules
12+
13+
# profiling files
14+
chrome-profiler-events*.json
15+
speed-measure-plugin*.json
16+
17+
# IDEs and editors
18+
/.idea
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
*.sublime-workspace
25+
26+
# IDE - VSCode
27+
.vscode/*
28+
!.vscode/settings.json
29+
!.vscode/tasks.json
30+
!.vscode/launch.json
31+
!.vscode/extensions.json
32+
.history/*
33+
34+
# misc
35+
/.sass-cache
36+
/connect.lock
37+
/coverage
38+
/libpeerconnection.log
39+
npm-debug.log
40+
yarn-error.log
41+
testem.log
42+
/typings
43+
44+
# System Files
45+
.DS_Store
46+
Thumbs.db

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"angular.enable-strict-mode-prompt": false
3+
}

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:14-alpine as build
2+
3+
WORKDIR /app
4+
COPY package*.json /app/
5+
RUN npm install
6+
COPY . /app
7+
RUN npm run build-prod
8+
9+
FROM nginx
10+
COPY --from=build /app/dist/out/ /usr/share/nginx/html
11+
COPY /nginx.conf /etc/nginx/conf.d/default.conf

0 commit comments

Comments
 (0)