mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 08:42:13 +02:00
Compare commits
116 Commits
monitor-bo
...
v4.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9b37472a4 | ||
|
|
d6935b2964 | ||
|
|
fb199a3817 | ||
|
|
6bfb4bbea7 | ||
|
|
ba5dea5af0 | ||
|
|
57f6ea559c | ||
|
|
5c329b0261 | ||
|
|
dc92577d13 | ||
|
|
f85e50ebd3 | ||
|
|
a9dd549be6 | ||
|
|
0ad9447475 | ||
|
|
def0449371 | ||
|
|
b19b1482f0 | ||
|
|
abcb6d7f6b | ||
|
|
f05ce219f5 | ||
|
|
ba75aff220 | ||
|
|
ab89440f79 | ||
|
|
00334f4751 | ||
|
|
978f137372 | ||
|
|
930eea01e9 | ||
|
|
a57adc0471 | ||
|
|
c544ad04b1 | ||
|
|
83f4fe441d | ||
|
|
f155a88d90 | ||
|
|
464b538d37 | ||
|
|
108c24aaae | ||
|
|
d28537cd51 | ||
|
|
7b561082c8 | ||
|
|
c8d769aa05 | ||
|
|
926f649f5b | ||
|
|
ef1b62998d | ||
|
|
498f45e59f | ||
|
|
ca53368bd6 | ||
|
|
8eb9991e81 | ||
|
|
6fedeff8a8 | ||
|
|
297389d552 | ||
|
|
2bf33861d4 | ||
|
|
bf149747b2 | ||
|
|
f9e202a9f0 | ||
|
|
693be265ca | ||
|
|
c72ba9430d | ||
|
|
64eb62f232 | ||
|
|
79e6cb478c | ||
|
|
fb545a3ed7 | ||
|
|
19d34662a0 | ||
|
|
afc41d079f | ||
|
|
ce93942d8e | ||
|
|
fa11dfd2db | ||
|
|
3a9c1ce8d3 | ||
|
|
e59be57933 | ||
|
|
f0478be7ef | ||
|
|
97e0c5ec4d | ||
|
|
ce8d4b4a39 | ||
|
|
ae3ea50ddf | ||
|
|
3571cb2b0e | ||
|
|
46e5b0c1b6 | ||
|
|
042a8f9712 | ||
|
|
391e2de932 | ||
|
|
fefec26759 | ||
|
|
81b616f824 | ||
|
|
88eb196769 | ||
|
|
718cf75dc0 | ||
|
|
de161e65f4 | ||
|
|
4a946d18e7 | ||
|
|
9ac278b5ed | ||
|
|
83c205b515 | ||
|
|
1af4728010 | ||
|
|
7200e71d30 | ||
|
|
b66d0a68dd | ||
|
|
b702abbebe | ||
|
|
52f76f4026 | ||
|
|
f90ff27083 | ||
|
|
6e75a2894d | ||
|
|
43d7a16dce | ||
|
|
5f0508ca34 | ||
|
|
b5272afb36 | ||
|
|
8fb0eaa7a8 | ||
|
|
3a4591b415 | ||
|
|
98b8ec6bf4 | ||
|
|
ac95db55da | ||
|
|
828a4ba36e | ||
|
|
09cefa6830 | ||
|
|
608746d644 | ||
|
|
e8ed111ed7 | ||
|
|
9d8d2a2f33 | ||
|
|
bc815ba6a0 | ||
|
|
ee6551c840 | ||
|
|
9f3c48ed2a | ||
|
|
d6c3eb7b1f | ||
|
|
b046455f1a | ||
|
|
a50a530793 | ||
|
|
7fedb6a696 | ||
|
|
111572ff29 | ||
|
|
3dd07f44c3 | ||
|
|
83c0597932 | ||
|
|
5305a260aa | ||
|
|
de31e352ad | ||
|
|
e051ca7e70 | ||
|
|
d4dfb8a0ac | ||
|
|
e5f9af6d1f | ||
|
|
bacd0e1a22 | ||
|
|
65432bf7fd | ||
|
|
f1f7e7dd14 | ||
|
|
91a877d51a | ||
|
|
5747acc126 | ||
|
|
829bf75951 | ||
|
|
9c83f58ffa | ||
|
|
10d9814c34 | ||
|
|
373f285b2f | ||
|
|
3d9c8779b5 | ||
|
|
dc9064636a | ||
|
|
3e57d03257 | ||
|
|
491d99c5cd | ||
|
|
d060fd1a0a | ||
|
|
157a84df5e | ||
|
|
0f71dbce2f |
@@ -25,6 +25,6 @@ api-docs/public/assets/*
|
||||
js-sdk/src/cli/server-monitor/out/scripts/prettify/*
|
||||
js-sdk/dist/logger.js
|
||||
js-sdk/dist/logger.min.js
|
||||
js-sdk/dist/fyipe.js
|
||||
js-sdk/dist/fyipe.min.js
|
||||
js-sdk/dist/oneuptime.js
|
||||
js-sdk/dist/oneuptime.min.js
|
||||
_test/*
|
||||
21
.github/skipped-workflows/accounts-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/accounts-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Accounts Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd accounts
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/admin-dashboard-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/admin-dashboard-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Admin Dashboard Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd admin-dashboard
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/api-docs-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/api-docs-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: API Docs Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd api-docs
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/application-scanner-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/application-scanner-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Application Scanner Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd application-scanner
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/backend-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/backend-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Backend Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd backend
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/common-server-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/common-server-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Common Server Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd common-server
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/common-ui-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/common-ui-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Common UI Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd common-ui
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/container-scanner-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/container-scanner-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Container Scanner Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd container-scanner
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/dashboard-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/dashboard-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Dashboard Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd dashboard
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/data-ingestor-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/data-ingestor-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Data Ingestor Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd data-ingestor
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/helm-chart-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/helm-chart-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Helm Chart Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd helm-chart
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/home-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/home-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Home Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd home
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/http-test-server-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/http-test-server-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: HTTP Test Server Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd http-test-server
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/init-script-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/init-script-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: InitScript Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd init-script
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/js-sdk-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/js-sdk-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: JS SDK Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd js-sdk
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/licensing-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/licensing-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Licensing Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd licensing
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/lighthousr-runner-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/lighthousr-runner-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Lighthouse Runner Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd lighthouse-runner
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/oneuptime-acme-http-01-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/oneuptime-acme-http-01-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: OneUptime ACME HTTP Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd oneuptime-acme-http-01
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/oneuptime-gl-manager.yaml
vendored
Normal file
21
.github/skipped-workflows/oneuptime-gl-manager.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: OneUptime GL Manager Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd oneuptime-gl-manager
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/oneuptime-le-store-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/oneuptime-le-store-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: OneUptime LetsEncrypt Store Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd oneuptime-le-store
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/probe-api-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/probe-api-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Probe API Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd probe-api
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/probe-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/probe-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Probe Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd probe
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/realtime-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/realtime-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Realtime Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd realtime
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/script-runner-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/script-runner-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Script Runner Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd script-runner
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/status-page-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/status-page-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Status Page Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd staus-page
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/zapier-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/zapier-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Zapier Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd zapier
|
||||
npm ci
|
||||
npm run audit
|
||||
|
||||
38
.github/workflows/accounts-production-deploy.yaml
vendored
Normal file
38
.github/workflows/accounts-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Accounts Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:4.0.$CI_PIPELINE_ID --push -f ./accounts/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:latest --push -f ./accounts/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-accounts fi-accounts=oneuptime/accounts:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
51
.github/workflows/accounts-staging-deploy.yaml
vendored
Normal file
51
.github/workflows/accounts-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: Accounts Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:4.0.$CI_PIPELINE_ID-staging --push -f ./accounts/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:staging --push -f ./accounts/Dockerfile .
|
||||
- run: sudo kubectl config get-contexts
|
||||
- run: kubectl config get-contexts
|
||||
- run: sudo kubectl set image deployment/fi-accounts fi-accounts=oneuptime/accounts:4.0.$CI_PIPELINE_ID-staging
|
||||
# Publish to GitHub registry.
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag ghcr.io/oneuptime/accounts:staging --push -f ./accounts/Dockerfile .
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/admin-dashboard-production-deploy.yaml
vendored
Normal file
39
.github/workflows/admin-dashboard-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Admin Dashboard Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy admin-dashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:latest --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-admin fi-admin=oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/admin-dashboard-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/admin-dashboard-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Admin Dashboard Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy admin-dashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID-staging --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:staging --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-admin fi-admin=oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/api-docs-production-deploy.yaml
vendored
Normal file
39
.github/workflows/api-docs-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: API Docs Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-docs.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:4.0.$CI_PIPELINE_ID --push -f ./api-docs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:latest --push -f ./api-docs/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-api-docs fi-api-docs=oneuptime/api-docs:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/api-docs-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/api-docs-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: API Docs Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-docs.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:4.0.$CI_PIPELINE_ID-staging --push -f ./api-docs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:staging --push -f ./api-docs/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-admin fi-admin=oneuptime/api-docs:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/application-scanner-production-deploy.yaml
vendored
Normal file
39
.github/workflows/application-scanner-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Application Scanner Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy admin-dashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:latest --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/application-scanner-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/application-scanner-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Application Scanner Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy application-scanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:4.0.$CI_PIPELINE_ID-staging --push -f ./application-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:staging --push -f ./application-scanner/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/application-scanner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/backend-production-deploy.yaml
vendored
Normal file
39
.github/workflows/backend-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Backend Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy backend.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:4.0.$CI_PIPELINE_ID --push -f ./backend/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:latest --push -f ./backend/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-backend fi-backend=oneuptime/backend:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/backend-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/backend-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Backend Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy backend.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:4.0.$CI_PIPELINE_ID-staging --push -f ./backend/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:staging --push -f ./backend/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-backend fi-backend=oneuptime/backend:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
24
.github/workflows/code-quality.yaml
vendored
24
.github/workflows/code-quality.yaml
vendored
@@ -1,24 +0,0 @@
|
||||
name: Code Quality Scan
|
||||
|
||||
on:
|
||||
# Trigger analysis when pushing in master or pull requests, and when creating
|
||||
# a pull request.
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
sonarcloud:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||
fetch-depth: 0
|
||||
- name: SonarCloud Scan
|
||||
uses: sonarsource/sonarcloud-github-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
@@ -4,6 +4,8 @@ on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'hotfix-*' # excludes hotfix branches
|
||||
- 'release'
|
||||
- 'staging-release'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
39
.github/workflows/container-scanner-production-deploy.yaml
vendored
Normal file
39
.github/workflows/container-scanner-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Container Scanner Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy container-scanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:4.0.$CI_PIPELINE_ID --push -f ./container-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:latest --push -f ./container-scanner/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/container-scanner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/container-scanner-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/container-scanner-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Container Scanner Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy container-scanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:4.0.$CI_PIPELINE_ID-staging --push -f ./container-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:staging --push -f ./container-scanner/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/container-scanner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/dashboard-production-deploy.yaml
vendored
Normal file
39
.github/workflows/dashboard-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Dashboard Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:4.0.$CI_PIPELINE_ID --push -f ./dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:latest --push -f ./dashboard/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-dashboard fi-dashboard=oneuptime/dashboard:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/dashboard-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/dashboard-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Dashboard Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:4.0.$CI_PIPELINE_ID-staging --push -f ./dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:staging --push -f ./dashboard/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-dashboard fi-dashboard=oneuptime/dashboard:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/data-ingestor-production-deploy.yaml
vendored
Normal file
39
.github/workflows/data-ingestor-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Data Ingestor Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy data-ingestor.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID --push -f ./data-ingestor/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:latest --push -f ./data-ingestor/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-ingestor fi-ingestor=oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/data-ingestor-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/data-ingestor-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Data Ingestor Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy data-ingestor.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID-staging --push -f ./data-ingestor/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:staging --push -f ./data-ingestor/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-ingestor fi-ingestor=oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/haraka-production-deploy.yaml
vendored
Normal file
39
.github/workflows/haraka-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Haraka Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy fi-haraka.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID --push -f ./haraka/Dockerfile ./haraka
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:latest --push -f ./haraka/Dockerfile ./haraka
|
||||
- run: sudo kubectl set image deployment/fi-haraka fi-haraka=oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/haraka-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/haraka-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Haraka Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy fi-haraka.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID-staging --push -f ./haraka/Dockerfile ./haraka
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/fi-haraka:staging --push -f ./haraka/Dockerfile ./haraka
|
||||
- run: sudo kubectl set image deployment/fi-haraka fi-haraka=oneuptime/fi-haraka:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/helm-chart-production-deploy.yaml
vendored
Normal file
39
.github/workflows/helm-chart-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Helm Chart Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy helm-chart.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:4.0.$CI_PIPELINE_ID --push -f ./helm-chart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:latest --push -f ./helm-chart/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-helm-chart fi-helm-chart=oneuptime/helm-chart:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
43
.github/workflows/helm-chart-staging-deploy.yaml
vendored
Normal file
43
.github/workflows/helm-chart-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Helm Chart Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy helm-chart.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:4.0.$CI_PIPELINE_ID-staging --push -f ./helm-chart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:staging --push -f ./helm-chart/Dockerfile .
|
||||
- run: sudo kubectl config get-contexts
|
||||
- run: kubectl config get-contexts
|
||||
- run: sudo kubectl set image deployment/fi-helm-chart fi-helm-chart=oneuptime/helm-chart:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/home-production-deploy.yaml
vendored
Normal file
39
.github/workflows/home-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Home Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy home.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:4.0.$CI_PIPELINE_ID --push -f ./home/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:latest --push -f ./home/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-home fi-home=oneuptime/home:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/home-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/home-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Home Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy home.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:4.0.$CI_PIPELINE_ID-staging --push -f ./home/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:staging --push -f ./home/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-home fi-home=oneuptime/home:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/http-test-server-production-deploy.yaml
vendored
Normal file
39
.github/workflows/http-test-server-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: HTTP Test Server Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy http-test-server.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:4.0.$CI_PIPELINE_ID --push -f ./http-test-server/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:latest --push -f ./http-test-server/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-test fi-test=oneuptime/http-test-server:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
41
.github/workflows/http-test-server-staging-deploy.yaml
vendored
Normal file
41
.github/workflows/http-test-server-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: HTTP Test Server Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy http-test-server.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:4.0.$CI_PIPELINE_ID-staging --push -f ./http-test-server/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:staging --push -f ./http-test-server/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-test fi-test=oneuptime/http-test-server:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
39
.github/workflows/init-script-production-deploy.yaml
vendored
Normal file
39
.github/workflows/init-script-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Init Script Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy init-script.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:4.0.$CI_PIPELINE_ID --push -f ./init-script/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:latest --push -f ./init-script/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-init-script fi-init-script=oneuptime/init-script:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
43
.github/workflows/init-script-staging-deploy.yaml
vendored
Normal file
43
.github/workflows/init-script-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Init Script Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy init-script.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:4.0.$CI_PIPELINE_ID-staging --push -f ./init-script/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:staging --push -f ./init-script/Dockerfile .
|
||||
- run: sudo kubectl delete job fi-init-script || echo "Job not found"
|
||||
- run: sudo helm upgrade --reuse-values fi ./helm-chart/public/oneuptime
|
||||
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
31
.github/workflows/js-sdk-production-deploy.yaml
vendored
Normal file
31
.github/workflows/js-sdk-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: JavaScript SDK Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./js-sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm run build
|
||||
- run: npm publish
|
||||
35
.github/workflows/js-sdk-staging-deploy.yaml
vendored
Normal file
35
.github/workflows/js-sdk-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: JavaScript SDK Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./js-sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: npm install
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-staging"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm run build
|
||||
- run: npm publish
|
||||
|
||||
40
.github/workflows/licensing-production-deploy.yaml
vendored
Normal file
40
.github/workflows/licensing-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Licensing Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy licensing.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:4.0.$CI_PIPELINE_ID --push -f ./licensing/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:latest --push -f ./licensing/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-licensing fi-licensing=oneuptime/licensing:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
42
.github/workflows/licensing-staging-deploy.yaml
vendored
Normal file
42
.github/workflows/licensing-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Licensing Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy licensing.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:4.0.$CI_PIPELINE_ID-staging --push -f ./licensing/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:staging --push -f ./licensing/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-licensing fi-licensing=oneuptime/licensing:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
40
.github/workflows/lighthouse-runner-production-deploy.yaml
vendored
Normal file
40
.github/workflows/lighthouse-runner-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Lighthouse Runner Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy lighthouse-runner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID --push -f ./lighthouse-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:latest --push -f ./lighthouse-runner/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
42
.github/workflows/lighthouse-runner-staging-deploy.yaml
vendored
Normal file
42
.github/workflows/lighthouse-runner-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Lighthouse Runner Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy lighthouse-runner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID-staging --push -f ./lighthouse-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:staging --push -f ./lighthouse-runner/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
31
.github/workflows/oneuptime-acme-http-01-production-deploy.yaml
vendored
Normal file
31
.github/workflows/oneuptime-acme-http-01-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: OneUptime ACME HTTP Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-acme-http-01
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-acme-http-01"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
32
.github/workflows/oneuptime-acme-http-01-staging-deploy.yaml
vendored
Normal file
32
.github/workflows/oneuptime-acme-http-01-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: OneUptime ACME HTTP Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-acme-http-01
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-acme-http-01-staging"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
31
.github/workflows/oneuptime-gl-manager-production-deploy.yaml
vendored
Normal file
31
.github/workflows/oneuptime-gl-manager-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: OneUptime LetsEncrypt Store Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-gl-manager
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-gl-manager"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
32
.github/workflows/oneuptime-gl-manager-staging-deploy.yaml
vendored
Normal file
32
.github/workflows/oneuptime-gl-manager-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: OneUptime LetsEncrypt Store Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-gl-manager
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-gl-manager-staging"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
32
.github/workflows/oneuptime-le-store-production-deploy.yaml
vendored
Normal file
32
.github/workflows/oneuptime-le-store-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: OneUptime LetsEncrypt Store Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-le-store
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: cd oneuptime-le-store
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-le-store"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
33
.github/workflows/oneuptime-le-store-staging-deploy.yaml
vendored
Normal file
33
.github/workflows/oneuptime-le-store-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: OneUptime LetsEncrypt Store Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-le-store
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-le-store-staging"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
|
||||
40
.github/workflows/probe-api-production-deploy.yaml
vendored
Normal file
40
.github/workflows/probe-api-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Probe API Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe-api.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:4.0.$CI_PIPELINE_ID --push -f ./probe-api/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:latest --push -f ./probe-api/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-probe-api fi-probe-api=oneuptime/probe-api:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
42
.github/workflows/probe-api-staging-deploy.yaml
vendored
Normal file
42
.github/workflows/probe-api-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Probe API Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe-api.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:4.0.$CI_PIPELINE_ID-staging --push -f ./probe-api/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:staging --push -f ./probe-api/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-probe-api fi-probe-api=oneuptime/probe-api:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
41
.github/workflows/probe-production-deploy.yaml
vendored
Normal file
41
.github/workflows/probe-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Probe Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:4.0.$CI_PIPELINE_ID --push -f ./probe/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:latest --push -f ./probe/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:4.0.$CI_PIPELINE_ID
|
||||
- run: sudo kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
43
.github/workflows/probe-staging-deploy.yaml
vendored
Normal file
43
.github/workflows/probe-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Probe Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:4.0.$CI_PIPELINE_ID-staging --push -f ./probe/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:staging --push -f ./probe/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: sudo kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
40
.github/workflows/realtime-production-deploy.yaml
vendored
Normal file
40
.github/workflows/realtime-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Realtime Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy realtime.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:4.0.$CI_PIPELINE_ID --push -f ./realtime/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:latest --push -f ./realtime/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
42
.github/workflows/realtime-staging-deploy.yaml
vendored
Normal file
42
.github/workflows/realtime-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Realtime Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy realtime.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:4.0.$CI_PIPELINE_ID-staging --push -f ./realtime/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:staging --push -f ./realtime/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
40
.github/workflows/script-runner-production-deploy.yaml
vendored
Normal file
40
.github/workflows/script-runner-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Script Runner Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy script-runner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:4.0.$CI_PIPELINE_ID --push -f ./script-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:latest --push -f ./script-runner/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-script fi-script=oneuptime/script-runner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
42
.github/workflows/script-runner-staging-deploy.yaml
vendored
Normal file
42
.github/workflows/script-runner-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Script Runner Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy script-runner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:4.0.$CI_PIPELINE_ID-staging --push -f ./script-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:staging --push -f ./script-runner/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-script fi-script=oneuptime/script-runner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
40
.github/workflows/status-page-production-deploy.yaml
vendored
Normal file
40
.github/workflows/status-page-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Status Page Production Deploy
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy status-page.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:4.0.$CI_PIPELINE_ID --push -f ./status-page/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:latest --push -f ./status-page/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-status fi-status=oneuptime/status-page:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
42
.github/workflows/status-page-staging-deploy.yaml
vendored
Normal file
42
.github/workflows/status-page-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Status Page Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy status-page.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:4.0.$CI_PIPELINE_ID-staging --push -f ./status-page/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:staging --push -f ./status-page/Dockerfile .
|
||||
- run: sudo kubectl set image deployment/fi-status fi-status=oneuptime/status-page:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
19
.github/workflows/test-enterprise.yaml
vendored
Normal file
19
.github/workflows/test-enterprise.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Enterprise Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'hotfix-*' # excludes hotfix branches
|
||||
- 'release'
|
||||
- 'staging-release'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: npm run docker-enterprise-test
|
||||
|
||||
19
.github/workflows/test-saas.yaml
vendored
Normal file
19
.github/workflows/test-saas.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Enterprise Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'hotfix-*' # excludes hotfix branches
|
||||
- 'release'
|
||||
- 'staging-release'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: npm run docker-saas-test
|
||||
|
||||
26
README.md
26
README.md
@@ -1,31 +1,33 @@
|
||||
# OneUptime
|
||||
|
||||
OneUptime is an open-source complete SRE and DevOps platform.
|
||||
OneUptime is an open-source complete SRE and DevOps platform.
|
||||
|
||||
OneUptime monitors your website, dashboards, API's, and more and alerts your team when downtime happens. We also give you a Status Page which keeps your customers looped in and improves transparency.
|
||||
|
||||
OneUptime does:
|
||||
- Uptime Monitoring just like Pingdom
|
||||
- Status Page just like StatusPage.io
|
||||
- Tests just like Postman
|
||||
- Security just like Snyk
|
||||
- Logs Management just like Loggly
|
||||
- Incident Management just like PagerDuty
|
||||
- Performance Monitoring just like NewRelic
|
||||
- Error Tracking just like Sentry
|
||||
OneUptime does:
|
||||
|
||||
All under one platform.
|
||||
- Uptime Monitoring just like Pingdom
|
||||
- Status Page just like StatusPage.io
|
||||
- Tests just like Postman
|
||||
- Security just like Snyk
|
||||
- Logs Management just like Loggly
|
||||
- Incident Management just like PagerDuty
|
||||
- Performance Monitoring just like NewRelic
|
||||
- Error Tracking just like Sentry
|
||||
|
||||
All under one platform.
|
||||
|
||||
## Contents
|
||||
|
||||
- [Introduction](/docs/introduction.md)
|
||||
- [Concept](/docs/concept.md)
|
||||
- [Architecture](/docs/architecture.md)
|
||||
- [How OneUptime Works](/docs/how-fyipe-works-overview)
|
||||
- [How OneUptime Works](/docs/how-oneuptime-works-overview)
|
||||
- [Subproject Description](/docs/project-description.md)
|
||||
- [Running OneUptime](/docs/run.md)
|
||||
- [Running tests](/docs/running-tests.md)
|
||||
- [Deployment](/docs/deployment.md)
|
||||
|
||||
# Contribute
|
||||
|
||||
For contribution guidelines, see [CONTRIBUTING](/CONTRIBUTING.md).
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import fyipe from 'fyipe-staging'
|
||||
import oneuptime from 'oneuptime-staging'
|
||||
|
||||
// constructor
|
||||
|
||||
@@ -8,7 +8,7 @@ const options = {
|
||||
};
|
||||
|
||||
// constructor
|
||||
const tracker = new fyipe.ErrorTracker(
|
||||
const tracker = new oneuptime.ErrorTracker(
|
||||
'https://staging.oneuptime.com/api',
|
||||
'605bad70ae110c0013e14005',
|
||||
'cb4b107a-7f28-464d-9fda-32715fa4cd68',
|
||||
|
||||
14
_test/error-tracker-js/package-lock.json
generated
14
_test/error-tracker-js/package-lock.json
generated
@@ -9,7 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"fyipe-staging": "^3.0.9531"
|
||||
"oneuptime-staging": "^3.0.9531"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
@@ -1038,9 +1038,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/fyipe-staging": {
|
||||
"node_modules/oneuptime-staging": {
|
||||
"version": "3.0.9531",
|
||||
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.9531.tgz",
|
||||
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.9531.tgz",
|
||||
"integrity": "sha512-vrsUVaiA8JeKIsBjC+AQNfP7wrYvydTI2Qg6EsB7HAntCkyXPYKQprZaaErOoyTI85xV5xKqZcjxbb238OerNg==",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
@@ -1059,7 +1059,7 @@
|
||||
"uuid": "^8.3.1"
|
||||
},
|
||||
"bin": {
|
||||
"fyipe": "src/cli/fyipe.js"
|
||||
"oneuptime": "src/cli/oneuptime.js"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"node-linux": "^0.1.12",
|
||||
@@ -1068,7 +1068,7 @@
|
||||
"osx-temperature-sensor": "^1.0.7"
|
||||
}
|
||||
},
|
||||
"node_modules/fyipe-staging/node_modules/commander": {
|
||||
"node_modules/oneuptime-staging/node_modules/commander": {
|
||||
"version": "7.1.0",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-7.1.0.tgz",
|
||||
"integrity": "sha512-pRxBna3MJe6HKnBGsDyMv8ETbptw3axEdYHoqNh7gu5oDcew8fs0xnivZGm06Ogk8zGAJ9VX+OPEr2GXEQK4dg==",
|
||||
@@ -3338,9 +3338,9 @@
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.3.tgz",
|
||||
"integrity": "sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA=="
|
||||
},
|
||||
"fyipe-staging": {
|
||||
"oneuptime-staging": {
|
||||
"version": "3.0.9531",
|
||||
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.9531.tgz",
|
||||
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.9531.tgz",
|
||||
"integrity": "sha512-vrsUVaiA8JeKIsBjC+AQNfP7wrYvydTI2Qg6EsB7HAntCkyXPYKQprZaaErOoyTI85xV5xKqZcjxbb238OerNg==",
|
||||
"requires": {
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"fyipe-staging": "^3.0.9531"
|
||||
"oneuptime-staging": "^3.0.9531"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// In a FrontEnd Environment
|
||||
import fyipe from 'fyipe-staging';
|
||||
const Logger = fyipe.Logger;
|
||||
import oneuptime from 'oneuptime-staging';
|
||||
const Logger = oneuptime.Logger;
|
||||
|
||||
// constructor
|
||||
const logger = new Logger(
|
||||
|
||||
14
_test/logger-js/package-lock.json
generated
14
_test/logger-js/package-lock.json
generated
@@ -9,7 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"fyipe-staging": "^3.0.9421"
|
||||
"oneuptime-staging": "^3.0.9421"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
@@ -1038,9 +1038,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/fyipe-staging": {
|
||||
"node_modules/oneuptime-staging": {
|
||||
"version": "3.0.9421",
|
||||
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.9421.tgz",
|
||||
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.9421.tgz",
|
||||
"integrity": "sha512-PFDfzkvA9R7ExRLSCI1zMCiIe+jVPirIbXXOpXaQWp86lnuOSIjktYshxJWWqf2eSMVA5r0uhJ5GI4AecdYjRQ==",
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
@@ -1060,7 +1060,7 @@
|
||||
"uuid": "^8.3.1"
|
||||
},
|
||||
"bin": {
|
||||
"fyipe": "src/cli/fyipe.js"
|
||||
"oneuptime": "src/cli/oneuptime.js"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"node-linux": "^0.1.12",
|
||||
@@ -1069,7 +1069,7 @@
|
||||
"osx-temperature-sensor": "^1.0.7"
|
||||
}
|
||||
},
|
||||
"node_modules/fyipe-staging/node_modules/commander": {
|
||||
"node_modules/oneuptime-staging/node_modules/commander": {
|
||||
"version": "7.1.0",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-7.1.0.tgz",
|
||||
"integrity": "sha512-pRxBna3MJe6HKnBGsDyMv8ETbptw3axEdYHoqNh7gu5oDcew8fs0xnivZGm06Ogk8zGAJ9VX+OPEr2GXEQK4dg==",
|
||||
@@ -3339,9 +3339,9 @@
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.3.tgz",
|
||||
"integrity": "sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA=="
|
||||
},
|
||||
"fyipe-staging": {
|
||||
"oneuptime-staging": {
|
||||
"version": "3.0.9421",
|
||||
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.9421.tgz",
|
||||
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.9421.tgz",
|
||||
"integrity": "sha512-PFDfzkvA9R7ExRLSCI1zMCiIe+jVPirIbXXOpXaQWp86lnuOSIjktYshxJWWqf2eSMVA5r0uhJ5GI4AecdYjRQ==",
|
||||
"requires": {
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"fyipe-staging": "^3.0.9421"
|
||||
"oneuptime-staging": "^3.0.9421"
|
||||
}
|
||||
}
|
||||
|
||||
10
_test/package-lock.json
generated
10
_test/package-lock.json
generated
@@ -9,7 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"fyipe-staging": "^3.0.7862"
|
||||
"oneuptime-staging": "^3.0.7862"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
@@ -835,9 +835,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/fyipe-staging": {
|
||||
"node_modules/oneuptime-staging": {
|
||||
"version": "3.0.8981",
|
||||
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.8981.tgz",
|
||||
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.8981.tgz",
|
||||
"integrity": "sha512-lKkbDgmii+MAqqP0TkvNHANzWPEJdj8qVD2fiXlpgJ6dzCIuY1bn5brGeQRUfVSFR53puYsxmm4Qm/H/+hg1KA==",
|
||||
"dependencies": {
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
@@ -2196,9 +2196,9 @@
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.3.tgz",
|
||||
"integrity": "sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA=="
|
||||
},
|
||||
"fyipe-staging": {
|
||||
"oneuptime-staging": {
|
||||
"version": "3.0.8981",
|
||||
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.8981.tgz",
|
||||
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.8981.tgz",
|
||||
"integrity": "sha512-lKkbDgmii+MAqqP0TkvNHANzWPEJdj8qVD2fiXlpgJ6dzCIuY1bn5brGeQRUfVSFR53puYsxmm4Qm/H/+hg1KA==",
|
||||
"requires": {
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"fyipe-staging": "^3.0.7862"
|
||||
"oneuptime-staging": "^3.0.7862"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const express = require('express')
|
||||
// If your env supports require
|
||||
const Fyipe = require('fyipe-staging');
|
||||
const OneUptime = require('oneuptime-staging');
|
||||
const app = express()
|
||||
|
||||
const axios = require('axios');
|
||||
@@ -15,7 +15,7 @@ const options = {
|
||||
};
|
||||
|
||||
// constructor
|
||||
new Fyipe.PerformanceTracker(
|
||||
new OneUptime.PerformanceTracker(
|
||||
options
|
||||
);
|
||||
|
||||
|
||||
12
_test/performance-tracker/package-lock.json
generated
12
_test/performance-tracker/package-lock.json
generated
@@ -9,7 +9,7 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"express": "^4.17.1",
|
||||
"fyipe-staging": "^3.0.10585"
|
||||
"oneuptime-staging": "^3.0.10585"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
@@ -1281,9 +1281,9 @@
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/fyipe-staging": {
|
||||
"node_modules/oneuptime-staging": {
|
||||
"version": "3.0.10585",
|
||||
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.10585.tgz",
|
||||
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.10585.tgz",
|
||||
"integrity": "sha512-4VeFxfoxOzVEfZMuUSrpwrHSREoXj3/TPY6pPfe+ssrX9f3p4pcu5K7VXdKRX52AYp8zmCO7dP9GY7kIp8mm7Q==",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
@@ -1306,7 +1306,7 @@
|
||||
"uuid": "^8.3.1"
|
||||
},
|
||||
"bin": {
|
||||
"fyipe": "src/cli/fyipe.js"
|
||||
"oneuptime": "src/cli/oneuptime.js"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"node-linux": "^0.1.12",
|
||||
@@ -4033,9 +4033,9 @@
|
||||
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
||||
"integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
|
||||
},
|
||||
"fyipe-staging": {
|
||||
"oneuptime-staging": {
|
||||
"version": "3.0.10585",
|
||||
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.10585.tgz",
|
||||
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.10585.tgz",
|
||||
"integrity": "sha512-4VeFxfoxOzVEfZMuUSrpwrHSREoXj3/TPY6pPfe+ssrX9f3p4pcu5K7VXdKRX52AYp8zmCO7dP9GY7kIp8mm7Q==",
|
||||
"requires": {
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"express": "^4.17.1",
|
||||
"fyipe-staging": "^3.0.10585"
|
||||
"oneuptime-staging": "^3.0.10585"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,13 +28,13 @@ app.use(async function(req, res, next) {
|
||||
const host = req.hostname;
|
||||
|
||||
try {
|
||||
if (host && host === 'fyipe.com') {
|
||||
if (host && host === 'oneuptime.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
if (host && host === 'staging.fyipe.com') {
|
||||
if (host && host === 'staging.oneuptime.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://staging.oneuptime.com${req.url}`,
|
||||
});
|
||||
|
||||
@@ -52,12 +52,12 @@ const App = ({
|
||||
checkIfMasterAdminExists,
|
||||
saveStatusPage,
|
||||
}) => {
|
||||
const oldHostNames = ['staging.fyipe.com', 'fyipe.com'];
|
||||
const oldHostNames = ['staging.oneuptime.com', 'oneuptime.com'];
|
||||
const currentHostName = window.location.hostname;
|
||||
|
||||
if (oldHostNames.includes(currentHostName)) {
|
||||
const updatedLink = `${window.location.origin.replace(
|
||||
'fyipe',
|
||||
'oneuptime',
|
||||
'oneuptime'
|
||||
)}${window.location.pathname}`;
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@ FROM node:17-alpine
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
|
||||
# Install python
|
||||
RUN apk update && apk add --no-cache --virtual .gyp python3 make g++
|
||||
|
||||
#Use bash shell by default
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
|
||||
@@ -8,6 +8,10 @@ FROM node:17-alpine
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
|
||||
|
||||
# Install python
|
||||
RUN apk update && apk add --no-cache --virtual .gyp python3 make g++
|
||||
|
||||
#Use bash shell by default
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
|
||||
@@ -25,13 +25,13 @@ app.use(async function(req, res, next) {
|
||||
const host = req.hostname;
|
||||
|
||||
try {
|
||||
if (host && host === 'fyipe.com') {
|
||||
if (host && host === 'oneuptime.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
if (host && host === 'staging.fyipe.com') {
|
||||
if (host && host === 'staging.oneuptime.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://staging.oneuptime.com${req.url}`,
|
||||
});
|
||||
|
||||
16
admin-dashboard/package-lock.json
generated
16
admin-dashboard/package-lock.json
generated
@@ -11,7 +11,7 @@
|
||||
"dependencies": {
|
||||
"react-scripts": "^4.0.3",
|
||||
"react-redux": "^7.2.4",
|
||||
"react-select-fyipe": "^2.1.8",
|
||||
"react-select-oneuptime": "^2.1.8",
|
||||
"axios": "^0.21.1",
|
||||
"clipboard": "^2.0.8",
|
||||
"redux-logger": "^3.0.6",
|
||||
@@ -151,9 +151,9 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/react-select-fyipe": {
|
||||
"node_modules/react-select-oneuptime": {
|
||||
"version": "2.1.8",
|
||||
"resolved": "https://registry.npmjs.org/react-select-fyipe/-/react-select-fyipe-2.1.8.tgz",
|
||||
"resolved": "https://registry.npmjs.org/react-select-oneuptime/-/react-select-oneuptime-2.1.8.tgz",
|
||||
"integrity": "sha512-ZSATT70NktDwZFRy1OZ5gpgXtD3JGPbXnaL07Pki/jaE78OwBBQMk7nxocZDKEDvhaNXW5QHuvras2wZloDOIg==",
|
||||
"dependencies": {
|
||||
"classnames": "^2.2.5",
|
||||
@@ -4670,7 +4670,7 @@
|
||||
"request": "^2.34"
|
||||
}
|
||||
},
|
||||
"node_modules/react-select-fyipe/node_modules/react-input-autosize": {
|
||||
"node_modules/react-select-oneuptime/node_modules/react-input-autosize": {
|
||||
"version": "2.2.2",
|
||||
"resolved": "https://registry.npmjs.org/react-input-autosize/-/react-input-autosize-2.2.2.tgz",
|
||||
"integrity": "sha512-jQJgYCA3S0j+cuOwzuCd1OjmBmnZLdqQdiLKRYrsMMzbjUrVDS5RvJUDwJqA7sKuksDuzFtm6hZGKFu7Mjk5aw==",
|
||||
@@ -11269,7 +11269,7 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/react-select-fyipe/node_modules/memoize-one": {
|
||||
"node_modules/react-select-oneuptime/node_modules/memoize-one": {
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-4.0.3.tgz",
|
||||
"integrity": "sha512-QmpUu4KqDmX0plH4u+tf0riMc1KHE1+lw95cMrLlXQAFOx/xnBtwhZ52XJxd9X2O6kwKBqX32kmhbhlobD0cuw=="
|
||||
@@ -14455,7 +14455,7 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/react-select-fyipe/node_modules/react-transition-group": {
|
||||
"node_modules/react-select-oneuptime/node_modules/react-transition-group": {
|
||||
"version": "2.9.0",
|
||||
"resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-2.9.0.tgz",
|
||||
"integrity": "sha512-+HzNTCHpeQyl4MJ/bdE0u6XRMe9+XG/+aL4mCxVN4DnPBQ0/5bfHWPDuOZUzYdMj94daZaZdCCc1Dzt9R/xSSg==",
|
||||
@@ -42861,9 +42861,9 @@
|
||||
"react-transition-group": "^4.3.0"
|
||||
}
|
||||
},
|
||||
"react-select-fyipe": {
|
||||
"react-select-oneuptime": {
|
||||
"version": "2.1.8",
|
||||
"resolved": "https://registry.npmjs.org/react-select-fyipe/-/react-select-fyipe-2.1.8.tgz",
|
||||
"resolved": "https://registry.npmjs.org/react-select-oneuptime/-/react-select-oneuptime-2.1.8.tgz",
|
||||
"integrity": "sha512-ZSATT70NktDwZFRy1OZ5gpgXtD3JGPbXnaL07Pki/jaE78OwBBQMk7nxocZDKEDvhaNXW5QHuvras2wZloDOIg==",
|
||||
"requires": {
|
||||
"classnames": "^2.2.5",
|
||||
|
||||
@@ -31,12 +31,12 @@ if (userData !== undefined) {
|
||||
}
|
||||
|
||||
const App = () => {
|
||||
const oldHostNames = ['staging.fyipe.com', 'fyipe.com'];
|
||||
const oldHostNames = ['staging.oneuptime.com', 'oneuptime.com'];
|
||||
const currentHostName = window.location.hostname;
|
||||
|
||||
if (oldHostNames.includes(currentHostName)) {
|
||||
const updatedLink = `${window.location.origin.replace(
|
||||
'fyipe',
|
||||
'oneuptime',
|
||||
'oneuptime'
|
||||
)}${window.location.pathname}`;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useRef, useEffect } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Select from './react-select-fyipe';
|
||||
import Select from './react-select-oneuptime';
|
||||
|
||||
const RenderSelect = ({
|
||||
input,
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import Select from 'react-select';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
const ReactSelectFyipe = props => (
|
||||
const ReactSelectOneUptime = props => (
|
||||
<Select
|
||||
{...props}
|
||||
styles={{
|
||||
@@ -32,8 +32,8 @@ const ReactSelectFyipe = props => (
|
||||
/>
|
||||
);
|
||||
|
||||
ReactSelectFyipe.displayName = 'ReactSelectFyipe';
|
||||
ReactSelectFyipe.propTypes = {
|
||||
ReactSelectOneUptime.displayName = 'ReactSelectOneUptime';
|
||||
ReactSelectOneUptime.propTypes = {
|
||||
style: PropTypes.object,
|
||||
};
|
||||
export default ReactSelectFyipe;
|
||||
export default ReactSelectOneUptime;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user