mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 08:42:13 +02:00
Compare commits
110 Commits
emails
...
fix-small-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83abc61932 | ||
|
|
ba4fc66684 | ||
|
|
22f17ce103 | ||
|
|
218b6b99be | ||
|
|
83f8d57254 | ||
|
|
ba57cce5d2 | ||
|
|
5a3968b6d7 | ||
|
|
2661cea56d | ||
|
|
2e3997a902 | ||
|
|
3fec7d7caf | ||
|
|
1d1ab46bc8 | ||
|
|
6cb904f630 | ||
|
|
d98fd590f2 | ||
|
|
c8e37b0031 | ||
|
|
9f93cdedf7 | ||
|
|
35869893f9 | ||
|
|
2c173089ad | ||
|
|
1b4945c4e3 | ||
|
|
70c5bdd410 | ||
|
|
585107b4b2 | ||
|
|
bce7e9c39e | ||
|
|
c046366176 | ||
|
|
6c5db4ec4f | ||
|
|
53da684247 | ||
|
|
3488f0debf | ||
|
|
ea0f6745e3 | ||
|
|
81a6b67078 | ||
|
|
68e82cc939 | ||
|
|
5bc7d118cf | ||
|
|
0ff93bc2cc | ||
|
|
48446813f3 | ||
|
|
b7b1ac41bc | ||
|
|
7bf591c074 | ||
|
|
f407ce4054 | ||
|
|
1d975425ae | ||
|
|
46db8cfce2 | ||
|
|
4e4ecf8b50 | ||
|
|
050a7aed0f | ||
|
|
96efe48d2c | ||
|
|
ed12cba6e4 | ||
|
|
ee9ffc442d | ||
|
|
0b23f0ef4a | ||
|
|
5ba827cd23 | ||
|
|
e1435152b6 | ||
|
|
1e0cc496b2 | ||
|
|
a377a02267 | ||
|
|
2b8c04b3fd | ||
|
|
3e1af06431 | ||
|
|
12be8c3998 | ||
|
|
f07cf9f42c | ||
|
|
e288325e0c | ||
|
|
3faa33775a | ||
|
|
c5a99fef53 | ||
|
|
a657f3d926 | ||
|
|
e1b7e7884c | ||
|
|
81c0a8c3ae | ||
|
|
cc6b547433 | ||
|
|
300ccdf177 | ||
|
|
9a0b242847 | ||
|
|
46ca8a3773 | ||
|
|
9e1dd9525b | ||
|
|
878489eeec | ||
|
|
6dc0c27379 | ||
|
|
4525b3de7d | ||
|
|
8044de83cc | ||
|
|
8f53f2fd76 | ||
|
|
ef9e0a2916 | ||
|
|
30f2504fe7 | ||
|
|
29c11c7779 | ||
|
|
73ba03df31 | ||
|
|
518a00d36a | ||
|
|
64eac70e1b | ||
|
|
7039960149 | ||
|
|
713f974af1 | ||
|
|
75f8cfa24c | ||
|
|
a869f41292 | ||
|
|
f728598885 | ||
|
|
3e226917a0 | ||
|
|
f491157403 | ||
|
|
62461e6a5d | ||
|
|
e6bf354d71 | ||
|
|
3d622ebf88 | ||
|
|
59a91cfdaf | ||
|
|
50c7c46ee2 | ||
|
|
42370b3cb4 | ||
|
|
1af9ad96dd | ||
|
|
5f3334ed5c | ||
|
|
3a04a77a06 | ||
|
|
1d87d3f29c | ||
|
|
edefa14ac5 | ||
|
|
980699c032 | ||
|
|
5fd6910682 | ||
|
|
0ee610a58d | ||
|
|
186b1848eb | ||
|
|
b71c9a176c | ||
|
|
ff80309397 | ||
|
|
3efe1bbcd2 | ||
|
|
ae6e0f2ff3 | ||
|
|
ddb12015af | ||
|
|
0bb204a3dc | ||
|
|
a767874b0c | ||
|
|
52a7c1562e | ||
|
|
c60d206a27 | ||
|
|
76cd0443c0 | ||
|
|
073bca6bc7 | ||
|
|
523035a9e3 | ||
|
|
0baed11a4d | ||
|
|
f83c4ac8cf | ||
|
|
98f68b2dd8 | ||
|
|
befe0fdc54 |
412
.github/workflows/image-deployment-release.yml
vendored
Normal file
412
.github/workflows/image-deployment-release.yml
vendored
Normal file
@@ -0,0 +1,412 @@
|
||||
name: Release Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
|
||||
github-release:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
env:
|
||||
ONEUPTIME_VERSION: 6.0.${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: release
|
||||
- name: "Build Changelog"
|
||||
id: build_changelog
|
||||
uses: mikepenz/release-changelog-builder-action@v3.7.1
|
||||
- uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: ${{env.ONEUPTIME_VERSION}}
|
||||
artifactErrorsFailBuild: true
|
||||
body: |
|
||||
${{steps.build_changelog.outputs.changelog}}
|
||||
|
||||
workflow-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workflow:6.0.$CI_PIPELINE_ID --tag oneuptime/workflow:release --push -f ./Workflow/Dockerfile .
|
||||
|
||||
workers-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy workers.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workers:6.0.$CI_PIPELINE_ID --tag oneuptime/workers:release --push -f ./Workers/Dockerfile .
|
||||
|
||||
staus-page-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy status-page.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:6.0.$CI_PIPELINE_ID --tag oneuptime/status-page:release --push -f ./StatusPage/Dockerfile .
|
||||
|
||||
realtime-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy realtime.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:6.0.$CI_PIPELINE_ID --tag oneuptime/realtime:release --push -f ./Realtime/Dockerfile .
|
||||
|
||||
|
||||
probe-api-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:6.0.$CI_PIPELINE_ID --tag oneuptime/probe-api:release --push -f ./ProbeAPI/Dockerfile .
|
||||
|
||||
nginx-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:6.0.$CI_PIPELINE_ID --tag oneuptime/nginx:release --push -f ./Nginx/Dockerfile .
|
||||
|
||||
|
||||
mail-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/mail:6.0.$CI_PIPELINE_ID --tag oneuptime/mail:release --push -f ./Mail/Dockerfile .
|
||||
|
||||
|
||||
licensing-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:6.0.$CI_PIPELINE_ID --tag oneuptime/licensing:release --push -f ./Licensing/Dockerfile .
|
||||
|
||||
integrations-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/integrations:6.0.$CI_PIPELINE_ID --tag oneuptime/integrations:release --push -f ./Integration/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
identity-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/identity:6.0.$CI_PIPELINE_ID --tag oneuptime/identity:release --push -f ./Identity/Dockerfile .
|
||||
|
||||
|
||||
home-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:6.0.$CI_PIPELINE_ID --tag oneuptime/home:release --push -f ./Home/Dockerfile .
|
||||
|
||||
|
||||
helm-chart-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:6.0.$CI_PIPELINE_ID --tag oneuptime/helm-chart:release --push -f ./HelmChart/Dockerfile .
|
||||
|
||||
|
||||
haraka-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:6.0.$CI_PIPELINE_ID --tag oneuptime/haraka:release --push -f ./Haraka/Dockerfile .
|
||||
|
||||
file-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy file.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/file:6.0.$CI_PIPELINE_ID --tag oneuptime/file:release --push -f ./File/Dockerfile .
|
||||
|
||||
|
||||
|
||||
dashboard-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:6.0.$CI_PIPELINE_ID --tag oneuptime/dashboard:release --push -f ./Dashboard/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
dashboard-api-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard-api:6.0.$CI_PIPELINE_ID --tag oneuptime/dashboard-api:release --push -f ./DashboardAPI/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
api-reference-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-reference.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:6.0.$CI_PIPELINE_ID --tag oneuptime/api-reference:release --push -f ./ApiReference/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
alert-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/alert:6.0.$CI_PIPELINE_ID --tag oneuptime/alert:release --push -f ./Alert/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
accounts-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:6.0.$CI_PIPELINE_ID --tag oneuptime/accounts:release --push -f ./Accounts/Dockerfile .
|
||||
|
||||
|
||||
392
.github/workflows/image-deployment-test.yml
vendored
Normal file
392
.github/workflows/image-deployment-test.yml
vendored
Normal file
@@ -0,0 +1,392 @@
|
||||
name: Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
|
||||
workflow-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workflow:6.0.$CI_PIPELINE_ID-test --tag oneuptime/workflow:test --push -f ./Workflow/Dockerfile .
|
||||
|
||||
workers-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy workers.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workers:6.0.$CI_PIPELINE_ID-test --tag oneuptime/workers:test --push -f ./Workers/Dockerfile .
|
||||
|
||||
staus-page-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy status-page.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:6.0.$CI_PIPELINE_ID-test --tag oneuptime/status-page:test --push -f ./StatusPage/Dockerfile .
|
||||
|
||||
realtime-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy realtime.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:6.0.$CI_PIPELINE_ID-test --tag oneuptime/realtime:test --push -f ./Realtime/Dockerfile .
|
||||
|
||||
|
||||
probe-api-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:6.0.$CI_PIPELINE_ID-test --tag oneuptime/probe-api:test --push -f ./ProbeAPI/Dockerfile .
|
||||
|
||||
nginx-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:6.0.$CI_PIPELINE_ID-test --tag oneuptime/nginx:test --push -f ./Nginx/Dockerfile .
|
||||
|
||||
|
||||
mail-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/mail:6.0.$CI_PIPELINE_ID-test --tag oneuptime/mail:test --push -f ./Mail/Dockerfile .
|
||||
|
||||
|
||||
licensing-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:6.0.$CI_PIPELINE_ID-test --tag oneuptime/licensing:test --push -f ./Licensing/Dockerfile .
|
||||
|
||||
integrations-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/integrations:6.0.$CI_PIPELINE_ID-test --tag oneuptime/integrations:test --push -f ./Integration/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
identity-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/identity:6.0.$CI_PIPELINE_ID-test --tag oneuptime/identity:test --push -f ./Identity/Dockerfile .
|
||||
|
||||
|
||||
home-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:6.0.$CI_PIPELINE_ID-test --tag oneuptime/home:test --push -f ./Home/Dockerfile .
|
||||
|
||||
|
||||
helm-chart-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:6.0.$CI_PIPELINE_ID-test --tag oneuptime/helm-chart:test --push -f ./HelmChart/Dockerfile .
|
||||
|
||||
|
||||
haraka-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:6.0.$CI_PIPELINE_ID-test --tag oneuptime/haraka:test --push -f ./Haraka/Dockerfile .
|
||||
|
||||
file-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy file.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/file:6.0.$CI_PIPELINE_ID-test --tag oneuptime/file:test --push -f ./File/Dockerfile .
|
||||
|
||||
|
||||
|
||||
dashboard-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:6.0.$CI_PIPELINE_ID-test --tag oneuptime/dashboard:test --push -f ./Dashboard/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
dashboard-api-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard-api:6.0.$CI_PIPELINE_ID-test --tag oneuptime/dashboard-api:test --push -f ./DashboardAPI/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
api-reference-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-reference.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:6.0.$CI_PIPELINE_ID-test --tag oneuptime/api-reference:test --push -f ./ApiReference/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
alert-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/alert:6.0.$CI_PIPELINE_ID-test --tag oneuptime/alert:test --push -f ./Alert/Dockerfile .
|
||||
|
||||
|
||||
|
||||
|
||||
accounts-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:6.0.$CI_PIPELINE_ID-test --tag oneuptime/accounts:test --push -f ./Accounts/Dockerfile .
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Accounts Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:5.0.$CI_PIPELINE_ID --push -f ./Accounts/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:release --push -f ./Accounts/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Alerts Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/alert:5.0.$CI_PIPELINE_ID --push -f ./Alert/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/alert:release --push -f ./Alert/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: ApiReference Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-reference.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:5.0.$CI_PIPELINE_ID --push -f ./ApiReference/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:release --push -f ./ApiReference/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Dashboard API Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard-api:5.0.$CI_PIPELINE_ID --push -f ./DashboardAPI/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard-api:release --push -f ./DashboardAPI/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Dashboard Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:5.0.$CI_PIPELINE_ID --push -f ./Dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:release --push -f ./Dashboard/Dockerfile .
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
name: File Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy file.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/file:5.0.$CI_PIPELINE_ID --push -f ./File/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/file:release --push -f ./File/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Haraka Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:5.0.$CI_PIPELINE_ID --push -f ./Haraka/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:release --push -f ./Haraka/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Helm Chart Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:5.0.$CI_PIPELINE_ID --push -f ./HelmChart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:release --push -f ./HelmChart/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Home Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:5.0.$CI_PIPELINE_ID --push -f ./Home/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:release --push -f ./Home/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Identity Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/identity:5.0.$CI_PIPELINE_ID --push -f ./Identity/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/identity:release --push -f ./Identity/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Accounts Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/integrations:5.0.$CI_PIPELINE_ID --push -f ./Integration/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/integrations:release --push -f ./Integration/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Licensing Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:5.0.$CI_PIPELINE_ID --push -f ./Licensing/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:release --push -f ./Licensing/Dockerfile .
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
name: Mail Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/mail:5.0.$CI_PIPELINE_ID --push -f ./Mail/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/mail:release --push -f ./Mail/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Nginx Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:5.0.$CI_PIPELINE_ID --push -f ./Nginx/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:release --push -f ./Nginx/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: ProbeAPI Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:5.0.$CI_PIPELINE_ID --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:release --push -f ./ProbeAPI/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Realtime Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy realtime.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:5.0.$CI_PIPELINE_ID --push -f ./Realtime/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:release --push -f ./Realtime/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Status Page Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy status-page.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:5.0.$CI_PIPELINE_ID --push -f ./StatusPage/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:release --push -f ./StatusPage/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Workers Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy workers.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workers:5.0.$CI_PIPELINE_ID --push -f ./Workers/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workers:release --push -f ./Workers/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Workflow Production Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workflow:5.0.$CI_PIPELINE_ID --push -f ./Workflow/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workflow:release --push -f ./Workflow/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Accounts Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:5.0.$CI_PIPELINE_ID-test --push -f ./Accounts/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:test --push -f ./Accounts/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Alerts Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/alert:5.0.$CI_PIPELINE_ID-test --push -f ./Alert/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/alert:test --push -f ./Alert/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: ApiReference Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-reference.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:5.0.$CI_PIPELINE_ID-test --push -f ./ApiReference/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:test --push -f ./ApiReference/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Dashboard API Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard-api:5.0.$CI_PIPELINE_ID-test --push -f ./DashboardAPI/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard-api:test --push -f ./DashboardAPI/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Dashboard Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:5.0.$CI_PIPELINE_ID-test --push -f ./Dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:test --push -f ./Dashboard/Dockerfile .
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
name: File Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy file.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/file:5.0.$CI_PIPELINE_ID-test --push -f ./File/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/file:test --push -f ./File/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Haraka Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:5.0.$CI_PIPELINE_ID-test --push -f ./Haraka/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:test --push -f ./Haraka/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Helm Chart Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:5.0.$CI_PIPELINE_ID-test --push -f ./HelmChart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:test --push -f ./HelmChart/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Home Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:5.0.$CI_PIPELINE_ID-test --push -f ./Home/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:test --push -f ./Home/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Identity Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/identity:5.0.$CI_PIPELINE_ID-test --push -f ./Identity/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/identity:test --push -f ./Identity/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Accounts Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/integrations:5.0.$CI_PIPELINE_ID-test --push -f ./Integration/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/integrations:test --push -f ./Integration/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Licensing Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:5.0.$CI_PIPELINE_ID-test --push -f ./Licensing/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:test --push -f ./Licensing/Dockerfile .
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
name: Mail Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/mail:5.0.$CI_PIPELINE_ID-test --push -f ./Mail/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/mail:test --push -f ./Mail/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Nginx Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:5.0.$CI_PIPELINE_ID-test --push -f ./Nginx/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:test --push -f ./Nginx/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: ProbeAPI Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe-api.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:5.0.$CI_PIPELINE_ID-test --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:test --push -f ./ProbeAPI/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Realtime Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy realtime.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:5.0.$CI_PIPELINE_ID-test --push -f ./Realtime/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:test --push -f ./Realtime/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Status Page Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy status-page.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:5.0.$CI_PIPELINE_ID-test --push -f ./StatusPage/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:test --push -f ./StatusPage/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Workers Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy workers.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workers:5.0.$CI_PIPELINE_ID-test --push -f ./Workers/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workers:test --push -f ./Workers/Dockerfile .
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Workflow Test Image Deploy to DockerHub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
|
||||
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18.3.0
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workflow:5.0.$CI_PIPELINE_ID-test --push -f ./Workflow/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/workflow:test --push -f ./Workflow/Dockerfile .
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import Text from 'Common/Types/Text';
|
||||
import BaseModel from 'Common/Models/BaseModel';
|
||||
import Models from 'Model/Models/Index';
|
||||
import ArrayUtil from 'Common/Types/ArrayUtil';
|
||||
@@ -24,9 +23,7 @@ export default class ResourceUtil {
|
||||
|
||||
return {
|
||||
name: modelInstance.singularName!,
|
||||
path: Text.pascalCaseToDashes(
|
||||
modelInstance.tableName as string
|
||||
),
|
||||
path: modelInstance.getAPIDocumentationPath(),
|
||||
model: modelInstance,
|
||||
description: modelInstance.tableDescription!,
|
||||
};
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
<link rel="image_src" type="image/png" href="/img/hou-wb.svg">
|
||||
<link rel="canonical" href="/">
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<meta property="og:title" content="OneUptime - One Complete SRE and DevOps platform.">
|
||||
<meta property="og:title" content="OneUptime - One Complete Observability platform.">
|
||||
<meta property="og:url" content="https://oneuptime.com">
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:description"
|
||||
@@ -144,7 +144,7 @@
|
||||
<meta name="theme-color" content="#000000">
|
||||
<meta name="twitter:image" content="/img/ou-wb.svg">
|
||||
<meta name="twitter:site" content="@oneuptimeinc">
|
||||
<meta name="twitter:title" content="OneUptime - One Complete SRE and DevOps platform.">
|
||||
<meta name="twitter:title" content="OneUptime - One Complete Observability platform.">
|
||||
<meta name="twitter:description"
|
||||
content="OneUptime monitors websites, API's, and servers and alerts your team if something goes wrong. It also keeps your customers updated about any downtime.">
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ This script changes version of every project
|
||||
"
|
||||
function version {
|
||||
cd $1
|
||||
npm version "5.0.$CI_PIPELINE_ID"
|
||||
npm version "6.0.$CI_PIPELINE_ID"
|
||||
cd ..
|
||||
}
|
||||
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
## Lighouse for the mobile version of the accounts pages
|
||||
mobile_lighthouse_accounts:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh mobile_lighthouse_accounts dashboard backend accounts`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- chmod +x ./ci/scripts/setup-docker.sh
|
||||
- ./ci/scripts/setup-docker.sh
|
||||
- echo "Setup machine for running lighthouse on accounts pages"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env -e BILLING_ENABLED=true --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/accounts:5.0.$CI_PIPELINE_ID ./accounts
|
||||
- sudo docker run --env-file ./accounts/.env -e BILLING_ENABLED=true -p 3003:3003 -d oneuptime/accounts:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/dashboard:5.0.$CI_PIPELINE_ID ./dashboard
|
||||
- sudo docker run --env-file ./dashboard/.env -e BILLING_ENABLED=true -p 3000:3000 -d oneuptime/dashboard:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- npm install
|
||||
- cd accounts
|
||||
- npm install
|
||||
- export CHROME_PATH="$(pwd)/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome"
|
||||
# try building, if there are warnings then this will fail
|
||||
- npm run build
|
||||
- npm run light-house-mobile
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh mobile_lighthouse_accounts dashboard backend accounts
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
|
||||
desktop_lighthouse_accounts:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh desktop_lighthouse_accounts dashboard backend accounts`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- chmod +x ./ci/scripts/setup-docker.sh
|
||||
- ./ci/scripts/setup-docker.sh
|
||||
- echo "Setup machine for running lighthouse on accounts pages"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env -e BILLING_ENABLED=true --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/accounts:5.0.$CI_PIPELINE_ID ./accounts
|
||||
- sudo docker run --env-file ./accounts/.env -e BILLING_ENABLED=true -p 3003:3003 -d oneuptime/accounts:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/dashboard:5.0.$CI_PIPELINE_ID ./dashboard
|
||||
- sudo docker run --env-file ./dashboard/.env -e BILLING_ENABLED=true -p 3000:3000 -d oneuptime/dashboard:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- npm install
|
||||
- cd accounts
|
||||
- npm install
|
||||
- export CHROME_PATH="$(pwd)/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome"
|
||||
# try building, if there are warnings then this will fail
|
||||
- npm run build
|
||||
- npm run light-house
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh desktop_lighthouse_accounts dashboard backend accounts
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,37 +0,0 @@
|
||||
staging_rollback_accounts:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback accounts
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-accounts
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $STAGING_SMOKE_TEST_STATUS
|
||||
|
||||
production_rollback_accounts:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback accounts
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-accounts
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
##ADMINDASHBOARD
|
||||
audit_AdminDashboard:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_AdminDashboard AdminDashboard`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd AdminDashboard
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_AdminDashboard AdminDashboard
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,37 +0,0 @@
|
||||
production_rollback_AdminDashboard:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback AdminDashboard
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-admin
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
|
||||
staging_rollback_AdminDashboard:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback AdminDashboard
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-admin
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $STAGING_SMOKE_TEST_STATUS
|
||||
@@ -1,26 +0,0 @@
|
||||
## ACCOUNTS
|
||||
audit_ApiReference:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_ApiReference ApiReference`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd ApiReference
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_ApiReference ApiReference
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,37 +0,0 @@
|
||||
staging_rollback_ApiReference:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback ApiReference
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-ApiReference
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $STAGING_SMOKE_TEST_STATUS
|
||||
|
||||
production_rollback_ApiReference:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback ApiReference
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-ApiReference
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
## ApplicationScanner
|
||||
audit_ApplicationScanner:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_ApplicationScanner ApplicationScanner`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd ApplicationScanner
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_ApplicationScanner ApplicationScanner
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
# BACKEND
|
||||
audit_backend:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_backend backend`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd backend
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_backend backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,84 +0,0 @@
|
||||
test_backend:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_backend backend InitScript probe HttpTestServer`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- chmod +x ./ci/scripts/docker-install.sh
|
||||
- ./ci/scripts/docker-install.sh
|
||||
- sudo apt-get install wget apt-transport-https gnupg lsb-release
|
||||
- wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
|
||||
- echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list
|
||||
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 294AC4827C1A168A
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install trivy
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker run --name realtime --env-file ./realtime/.env -e PORT=3300 --net=host -d oneuptime/realtime:latest
|
||||
- sudo docker run --name=samlIdp -p 9876:8080 -p 8443:8443 -e SIMPLESAMLPHP_SP_ENTITY_ID=oneuptime.com -e SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://localhost:3002/api/user/sso/callback -e SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE=http://localhost/simplesaml/module.php/saml/sp/saml2-logout.php/test-sp -v $PWD/saml/users.php:/var/www/simplesamlphp/config/authsources.php -d kristophjunge/test-saml-idp
|
||||
- sudo docker build -t oneuptime/InitScript:5.0.$CI_PIPELINE_ID ./InitScript
|
||||
- sudo docker run -e NODE_ENV=development -e BILLING_ENABLED=true -e IS_TESTING=true --net=host -d oneuptime/InitScript:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/probe:5.0.$CI_PIPELINE_ID ./probe
|
||||
- sudo docker run --name probe-1 --env-file ./probe/.env -e PORT=3024 -e SERVER_URL=http://localhost:3020 -e PROBE_NAME='Probe 1' -e PROBE_KEY=test-key --net=host -d oneuptime/probe:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker run --name probe-2 --env-file ./probe/.env -e PORT=3025 -e SERVER_URL=http://localhost:3020 -e PROBE_NAME='Probe 2' -e PROBE_KEY=test-key --net=host -d oneuptime/probe:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/HttpTestServer:5.0.$CI_PIPELINE_ID ./HttpTestServer
|
||||
- sudo docker run -p 3010:3010 -d oneuptime/HttpTestServer:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd backend
|
||||
- npm install
|
||||
- ENCRYPTION_KEY=$ENCRYPTION_KEY TEST_EMAIL_SMTP_PORT=$TEST_EMAIL_SMTP_PORT TEST_EMAIL_SMTP_SERVER=$TEST_EMAIL_SMTP_SERVER TEST_EMAIL=$TEST_EMAIL TEST_EMAIL_NAME=$TEST_EMAIL TEST_EMAIL_PASSWORD=$TEST_EMAIL_PASSWORD BILLING_ENABLED=true IS_TESTING=true DOCKER_UNMASKED_USERNAME=$DOCKER_UNMASKED_USERNAME DOCKER_UNMASKED_PASSWORD=$DOCKER_UNMASKED_PASSWORD DOCKER_SECURITY_SCAN_REGISTRY_URL=$DOCKER_SECURITY_SCAN_REGISTRY_URL DOCKER_SECURITY_SCAN_IMAGE_PATH=$DOCKER_SECURITY_SCAN_IMAGE_PATH DOCKER_SECURITY_SCAN_IMAGE_TAGS=$DOCKER_SECURITY_SCAN_IMAGE_TAGS GITHUB_UNMASKED_USERNAME=$GITHUB_UNMASKED_USERNAME GITHUB_UNMASKED_PASSWORD=$GITHUB_UNMASKED_PASSWORD GITHUB_SECURITY_SCAN_REPOSITORY_URL=$GITHUB_SECURITY_SCAN_REPOSITORY_URL npm test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_backend backend InitScript probe HttpTestServer
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
artifacts:
|
||||
name: 'coverage-$CI_COMMIT_SHORT_SHA'
|
||||
when: always
|
||||
paths:
|
||||
- backend/coverage/lcov-report/
|
||||
expire_in: 1 week
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
|
||||
test_enterprise_backend:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_enterprise_backend backend`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- chmod +x ./ci/scripts/docker-install.sh
|
||||
- ./ci/scripts/docker-install.sh
|
||||
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 294AC4827C1A168A
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name bredis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker run --name realtime --env-file ./realtime/.env -e PORT=3300 --net=host -d oneuptime/realtime:latest
|
||||
- sudo docker ps
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd backend
|
||||
- npm install
|
||||
- npm run enterprise-test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_enterprise_backend backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
artifacts:
|
||||
name: 'coverage-$CI_COMMIT_SHORT_SHA'
|
||||
when: always
|
||||
paths:
|
||||
- backend/coverage/lcov-report/
|
||||
expire_in: 1 week
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,37 +0,0 @@
|
||||
staging_rollback_backend:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback backend
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $SMOKE_TEST_STATUS == "success"
|
||||
|
||||
production_rollback_backend:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback backend
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
## ContainerScanner
|
||||
audit_ContainerScanner:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_ContainerScanner ContainerScanner`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd ContainerScanner
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_ContainerScanner ContainerScanner
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
##DASHBOARD
|
||||
audit_dashboard:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_dashboard dashboard`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd dashboard
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_dashboard dashboard
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,39 +0,0 @@
|
||||
## STAGING ROLLBACK
|
||||
staging_rollback_dashboard:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback dashboard
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-dashboard
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $STAGING_SMOKE_TEST_STATUS
|
||||
|
||||
## PRODUCTION ROLLBACK
|
||||
production_rollback_dashboard:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback dashboard
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-dashboard
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
## DATA-INGESTOR
|
||||
audit_data-ingestor:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_data-ingestor data-ingestor`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd data-ingestor
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_data-ingestor data-ingestor
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,37 +0,0 @@
|
||||
staging_rollback_data-ingestor:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback data-ingestor
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-ingestor
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $STAGING_SMOKE_TEST_STATUS
|
||||
|
||||
production_rollback_data-ingestor:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback data-ingestor
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-ingestor
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,30 +0,0 @@
|
||||
e2e_docker_compose_enterprise_test:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- curl -sSL https://get.docker.com/ | sh #Install docker.
|
||||
# Install Docker Compose.
|
||||
- sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||
- sudo chmod +x /usr/local/bin/docker-compose
|
||||
- sudo docker compose down -v
|
||||
# Install the cluster.
|
||||
- chmod +x ./env-setup.sh
|
||||
- ./env-setup.sh
|
||||
- npm run ci-docker-enterprise
|
||||
# Sleep for 5 mins to make sure docker started
|
||||
- sleep 5m
|
||||
# Set env var
|
||||
- export ACCOUNTS_URL=http://localhost:3003
|
||||
- export ADMIN_DASHBOARD_URL=http://localhost:3100
|
||||
- export DASHBOARD_URL=http://localhost:3000
|
||||
- export BACKEND_URL=http://localhost:3002
|
||||
- cd tests
|
||||
- npm install
|
||||
- npm run enterprise-test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- master
|
||||
@@ -1,34 +0,0 @@
|
||||
##E2E Stage.
|
||||
e2e_docker_compose_test:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- curl -sSL https://get.docker.com/ | sh #Install docker.
|
||||
# Install Docker Compose.
|
||||
- sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||
- sudo chmod +x /usr/local/bin/docker-compose
|
||||
- sudo docker compose down -v
|
||||
- export BILLING_ENABLED=true
|
||||
# Install the cluster.
|
||||
- chmod +x ./env-setup.sh
|
||||
- ./env-setup.sh
|
||||
- npm run ci-docker-saas
|
||||
# Sleep for 5 mins to make sure docker started
|
||||
- sleep 5m
|
||||
# Set env var
|
||||
- export HOME_URL=http://localhost:1444
|
||||
- export ACCOUNTS_URL=http://localhost:3003
|
||||
- export DASHBOARD_URL=http://localhost:3000
|
||||
- export BACKEND_URL=http://localhost:3002
|
||||
- export STATUSPAGE_URL=http://localhost:3006
|
||||
- export ApiReference_URL=http://localhost:1445
|
||||
- cd tests
|
||||
- npm install
|
||||
- npm run test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- master
|
||||
@@ -1,23 +0,0 @@
|
||||
e2e_microk8s_enterprise_test:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- chmod +x ./ci/scripts/setup-machine.sh
|
||||
- ./ci/scripts/setup-machine.sh enterprise
|
||||
- chmod +x ./ci/scripts/setup.sh
|
||||
- ./ci/scripts/setup.sh
|
||||
- export ACCOUNTS_URL=http://localhost/accounts
|
||||
- export ADMIN_DASHBOARD_URL=http://localhost/admin
|
||||
- export DASHBOARD_URL=http://localhost/dashboard
|
||||
- export BACKEND_URL=http://localhost/api
|
||||
- export LICENSING_URL=http://localhost/license
|
||||
- cd tests
|
||||
- npm install
|
||||
- npm run enterprise-test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- master
|
||||
@@ -1,27 +0,0 @@
|
||||
#E2E Stage.
|
||||
e2e_microk8s_test:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- chmod +x ./ci/scripts/setup-machine.sh
|
||||
- ./ci/scripts/setup-machine.sh
|
||||
- chmod +x ./ci/scripts/setup.sh
|
||||
- ./ci/scripts/setup.sh
|
||||
- export HOME_URL=http://localhost
|
||||
- export ACCOUNTS_URL=http://localhost/accounts
|
||||
- export ADMIN_DASHBOARD_URL=http://localhost/admin
|
||||
- export DASHBOARD_URL=http://localhost/dashboard
|
||||
- export BACKEND_URL=http://localhost/api
|
||||
- export STATUSPAGE_URL=http://localhost/StatusPage
|
||||
- export ApiReference_URL=http://localhost/docs
|
||||
- export LICENSING_URL=http://localhost/license
|
||||
- cd tests
|
||||
- npm install
|
||||
- npm run test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- master
|
||||
@@ -1,29 +0,0 @@
|
||||
rollback_if_staging_deployment_fails:
|
||||
stage: RollbackIfDeploymentFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- chmod +x ./ci/scripts/staging-rollback.sh
|
||||
- ./ci/scripts/staging-rollback.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
|
||||
rollback_if_production_deployment_fails:
|
||||
stage: RollbackIfDeploymentFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
- chmod +x ./ci/scripts/production-rollback.sh
|
||||
- ./ci/scripts/production-rollback.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,32 +0,0 @@
|
||||
## GO SDK
|
||||
audit_GoSDK:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_GoSDK GoSDK`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt --fix-broken -y install
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- wget https://dl.google.com/go/go1.16.4.linux-amd64.tar.gz
|
||||
- tar -xvf go1.16.4.linux-amd64.tar.gz
|
||||
- sudo mv go /usr/local || true # just continue is go already exist in the location
|
||||
- export GOROOT=/usr/local/go
|
||||
- export GOPATH=$HOME/GoSDK/oneuptime
|
||||
- export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
||||
- go version
|
||||
- cd GoSDK
|
||||
- go build
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_GoSDK GoSDK
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
- feature-GoSDK
|
||||
@@ -1,40 +0,0 @@
|
||||
test_GoSDK:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_GoSDK GoSDK backend`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sSL https://get.docker.com/ | sh #Install docker.
|
||||
- sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libgbm-dev
|
||||
- echo "Setup machine for running go sdk tests"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env -e ENCRYPTION_KEY=$ENCRYPTION_KEY --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- wget https://dl.google.com/go/go1.16.4.linux-amd64.tar.gz
|
||||
- sudo tar -xvf go1.16.4.linux-amd64.tar.gz
|
||||
- sudo mv go /usr/local || true # just continue is go already exist in the location
|
||||
- export GOROOT=/usr/local/go
|
||||
- export GOPATH=$HOME/GoSDK/oneuptime
|
||||
- export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
||||
- go version
|
||||
- cd GoSDK
|
||||
- go get -d ./...
|
||||
- go test -v
|
||||
# - go test -coverprofile=cover.txt
|
||||
# - go tool cover -html=cover.txt -o cover.html
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_GoSDK GoSDK backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,79 +0,0 @@
|
||||
## DEPLOYMENT STAGE - GO SDK
|
||||
deploy_staging_GoSDK:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- wget https://dl.google.com/go/go1.16.4.linux-amd64.tar.gz
|
||||
- sudo tar -xvf go1.16.4.linux-amd64.tar.gz
|
||||
- sudo mv go /usr/local || true # just continue is go already exist in the location
|
||||
- export GOROOT=/usr/local/go
|
||||
- export GOPATH=$HOME/GoSDK/oneuptime
|
||||
- export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
||||
- cd GoSDK
|
||||
- go get -d ./...
|
||||
- go mod tidy
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "staging commit version 5.0.$CI_PIPELINE_ID"
|
||||
- git tag v5.0.$CI_PIPELINE_ID-qa
|
||||
# - go build
|
||||
# - git checkout staging || git checkout -b staging
|
||||
# - git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/GoSDK.git staging --force
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/GoSDK.git v5.0.$CI_PIPELINE_ID-qa --force
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- hotfix-master
|
||||
- feature-GoSDK
|
||||
environment:
|
||||
name: staging
|
||||
|
||||
production_GoSDK:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- wget https://dl.google.com/go/go1.16.4.linux-amd64.tar.gz
|
||||
- sudo tar -xvf go1.16.4.linux-amd64.tar.gz
|
||||
- sudo mv go /usr/local || true # just continue is go already exist in the location
|
||||
- export GOROOT=/usr/local/go
|
||||
- export GOPATH=$HOME/GoSDK/oneuptime
|
||||
- export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
||||
- cd GoSDK
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "production commit version 5.0.$CI_PIPELINE_ID" || echo "Nothing to update because no changes to sdk was made"
|
||||
- git checkout -f master
|
||||
- go get -d ./...
|
||||
- go mod tidy
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "production commit version 5.0.$CI_PIPELINE_ID" || echo "Nothing to update because no changes to sdk was made"
|
||||
- git tag v0.5.0.$CI_PIPELINE_ID
|
||||
# - go build
|
||||
# - git checkout staging || git checkout -b staging
|
||||
# - git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/GoSDK.git staging --force
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/GoSDK.git v5.0.$CI_PIPELINE_ID --force
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/GoSDK.git master --force
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- hotfix-master
|
||||
- feature-GoSDK
|
||||
environment:
|
||||
name: prroduction
|
||||
@@ -1,34 +0,0 @@
|
||||
# Helm Chart Repo
|
||||
audit_HelmChart:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_HelmChart HelmChart`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
# Lint helm chart - helm lint needs a kubeconfig file and this is why we do Test Image Deploy to DockerHubment setup.
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- cd HelmChart
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
# Install Helm.
|
||||
- sudo curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | sudo bash
|
||||
- sudo helm lint ./public/oneuptime
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_HelmChart HelmChart
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,8 +0,0 @@
|
||||
test_HelmChart:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- echo "No test implemented"
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,37 +0,0 @@
|
||||
staging_rollback_HelmChart:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback backend
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-HelmChart
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $SMOKE_TEST_STATUS == "success"
|
||||
|
||||
production_rollback_hekm-chart:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback backend
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-HelmChart
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
## HOME
|
||||
audit_home:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_home home`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd home
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_home home
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,58 +0,0 @@
|
||||
## Lighouse for the mobile version of the home pages.
|
||||
mobile_lighthouse_home:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh mobile_lighthouse_home home`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- chmod +x ./ci/scripts/setup-docker.sh
|
||||
- ./ci/scripts/setup-docker.sh
|
||||
- echo "Setup machine for running lighthouse on home page"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker build -t oneuptime/home:5.0.$CI_PIPELINE_ID ./home
|
||||
- sudo docker run -p 1444:1444 -d oneuptime/home:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- cd home
|
||||
- npm install
|
||||
- export CHROME_PATH="$(pwd)/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome"
|
||||
- npm run light-house-mobile
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh mobile_lighthouse_home home
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
|
||||
desktop_lighthouse_home:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh desktop_lighthouse_home home`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- chmod +x ./ci/scripts/setup-docker.sh
|
||||
- ./ci/scripts/setup-docker.sh
|
||||
- echo "Setup machine for running lighthouse on home page"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker build -t oneuptime/home:5.0.$CI_PIPELINE_ID ./home
|
||||
- sudo docker run -p 1444:1444 -d oneuptime/home:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- cd home
|
||||
- npm install
|
||||
- export CHROME_PATH="$(pwd)/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome"
|
||||
- npm run light-house
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh desktop_lighthouse_home home
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,37 +0,0 @@
|
||||
staging_rollback_home:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback home
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-home
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $STAGING_SMOKE_TEST_STATUS
|
||||
|
||||
production_rollback_home:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback home
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-home
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
##HTTP_TEST_SERVER
|
||||
audit_http_test_server:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_http_test_server HttpTestServer`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd HttpTestServer
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_http_test_server HttpTestServer
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,37 +0,0 @@
|
||||
staging_rollback_test-server:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback home
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-test
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $STAGING_SMOKE_TEST_STATUS
|
||||
|
||||
production_rollback_test-server:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback home
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-test
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
## InitScript
|
||||
audit_InitScript:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_InitScript InitScript`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd InitScript
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_InitScript InitScript
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,66 +0,0 @@
|
||||
# DEPLOYMENT STAGE - Init Script
|
||||
staging_InitScript:
|
||||
stage: Deploy
|
||||
retry: 2
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/version-setup.sh
|
||||
- ./ci/scripts/version-setup.sh
|
||||
- chmod +x ./ci/scripts/install-helm.sh
|
||||
- ./ci/scripts/install-helm.sh
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- sudo docker build -t oneuptime/InitScript:test ./InitScript
|
||||
- sudo docker tag oneuptime/InitScript:test oneuptime/InitScript:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker push oneuptime/InitScript:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker push oneuptime/InitScript:test
|
||||
## You cannot update a Kubernetes job. They are immutable. Delete it and run helm again which will create a new job. .
|
||||
- sudo kubectl delete job fi-InitScript || echo "Job not found"
|
||||
- sudo helm upgrade --reuse-values fi ./HelmChart/public/oneuptime
|
||||
# Cleanup
|
||||
- chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- ./ci/scripts/deployment-cleanup.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- hotfix-master
|
||||
environment:
|
||||
name: staging
|
||||
|
||||
production_InitScript:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- chmod +x ./ci/scripts/version-setup.sh
|
||||
- ./ci/scripts/version-setup.sh
|
||||
- chmod +x ./ci/scripts/install-helm.sh
|
||||
- ./ci/scripts/install-helm.sh
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- sudo docker build -t oneuptime/InitScript:latest ./InitScript
|
||||
- sudo docker tag oneuptime/InitScript:latest oneuptime/InitScript:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker push oneuptime/InitScript:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker push oneuptime/InitScript:latest
|
||||
## You cannot update a Kubernetes job. They are immutable. Delete it and run helm again which will create a a new job. .
|
||||
- sudo kubectl delete job fi-InitScript || echo "Job not found"
|
||||
- sudo helm upgrade --reuse-values fi ./HelmChart/public/oneuptime
|
||||
# Cleanup
|
||||
- chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- ./ci/scripts/deployment-cleanup.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- hotfix-release
|
||||
environment:
|
||||
name: production
|
||||
@@ -1,29 +0,0 @@
|
||||
## JAVA SDK
|
||||
audit_JavaSDK:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_JavaSDK JavaSDK`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y maven
|
||||
- sudo apt-get remove -y --purge openjdk* java-common default-jdk
|
||||
- sudo apt-get autoremove -y --purge
|
||||
- sudo apt-get install -y openjdk-8-jdk
|
||||
- sudo apt-get install -y maven
|
||||
- cp -f JavaSDK/.m2/settings.xml $HOME/.m2/settings.xml
|
||||
- cd JavaSDK
|
||||
- mvn clean
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_JavaSDK JavaSDK
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,34 +0,0 @@
|
||||
test_JavaSDK:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_JavaSDK JavaSDK backend`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- curl -sSL https://get.docker.com/ | sh #Install docker.
|
||||
- sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
|
||||
- echo "Setup machine for running log java tests"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env -e ENCRYPTION_KEY=$ENCRYPTION_KEY --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- sudo apt-get install -y maven
|
||||
- sudo apt-get remove -y --purge openjdk* java-common default-jdk
|
||||
- sudo apt-get autoremove -y --purge
|
||||
- sudo apt-get install -y openjdk-8-jdk
|
||||
- sudo apt-get install -y maven
|
||||
- cp -f JavaSDK/.m2/settings.xml $HOME/.m2/settings.xml
|
||||
- cd JavaSDK
|
||||
- mvn clean test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_JavaSDK JavaSDK backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,87 +0,0 @@
|
||||
## DEPLOYMENT STAGE - JAVA SDK
|
||||
staging_JavaSDK:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt --fix-broken install -y
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
|
||||
- echo "Setup machine for running log java tests"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- cd JavaSDK
|
||||
# - gpg --batch --passphrase $GPG_PASSPHRASE --quick-generate-key ONEUPTIME default default 2024-07-16
|
||||
# - gpg --list-keys
|
||||
# - gpg --keyserver hkp://pool.sks-keyservers.net --send-keys 23972C2E9738913575B32C581FEDD8E12C3929D9
|
||||
# - gpg --keyserver keyserver.ubuntu.com --send-keys 23972C2E9738913575B32C581FEDD8E12C3929D9
|
||||
- export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
|
||||
- mvn versions:set -DnewVersion="5.0.$CI_PIPELINE_ID-SNAPSHOT"
|
||||
- mvn versions:set-property -Dproperty=sdk.version -DnewVersion="5.0.$CI_PIPELINE_ID"
|
||||
- mvn clean deploy
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "Test Image Deploy to DockerHubment version 5.0.$CI_PIPELINE_ID-SNAPSHOT"
|
||||
- git checkout staging || git checkout -b staging
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/JavaSDK.git staging --force
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- hotfix-master
|
||||
environment:
|
||||
name: staging
|
||||
|
||||
production_JavaSDK:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt --fix-broken install -y
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
|
||||
- echo "Setup machine for running java sdk tests"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- cd JavaSDK
|
||||
# - gpg --batch --passphrase $GPG_PASSPHRASE --quick-generate-key ONEUPTIME default default 2024-07-16
|
||||
# - gpg --list-keys
|
||||
# - gpg --keyserver hkp://pool.sks-keyservers.net --send-keys AD260FCA4615DAD557090B1DC928B7479CFDE5A0
|
||||
# - gpg --keyserver keyserver.ubuntu.com --send-keys AD260FCA4615DAD557090B1DC928B7479CFDE5A0
|
||||
- git status
|
||||
- export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
|
||||
# - git checkout -f master
|
||||
- mvn versions:set -DnewVersion="5.0.$CI_PIPELINE_ID"
|
||||
- mvn versions:set-property -Dproperty=sdk.version -DnewVersion="5.0.$CI_PIPELINE_ID"
|
||||
- mvn clean deploy -P release
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "production deployment version 5.0.$CI_PIPELINE_ID"
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/JavaSDK.git master --force
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- hotfix-release
|
||||
environment:
|
||||
name: production
|
||||
@@ -1,26 +0,0 @@
|
||||
## JS SDK
|
||||
audit_JavaScriptSDK:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_JavaScriptSDK JavaScriptSDK`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd JavaScriptSDK
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_JavaScriptSDK JavaScriptSDK
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,30 +0,0 @@
|
||||
test_JavaScriptSDK:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_JavaScriptSDK JavaScriptSDK backend`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- curl -sSL https://get.docker.com/ | sh #Install docker.
|
||||
- sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libgbm-dev
|
||||
- echo "Setup machine for running log js tests"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env -e ENCRYPTION_KEY=$ENCRYPTION_KEY --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- cd JavaScriptSDK
|
||||
- npm install
|
||||
- npm run build
|
||||
- npm run test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_JavaScriptSDK JavaScriptSDK backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,26 +0,0 @@
|
||||
# LICENSING
|
||||
audit_licensing:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_licensing licensing`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd licensing
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_licensing licensing
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,20 +0,0 @@
|
||||
test_licensing:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_licensing licensing`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- curl -sSL https://get.docker.com/ | sh #Install docker.
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker build -t oneuptime/licensing:5.0.$CI_PIPELINE_ID ./licensing
|
||||
- sudo docker ps
|
||||
- sudo docker run --env-file ./licensing/.env --net=host oneuptime/licensing:5.0.$CI_PIPELINE_ID npm test
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_licensing licensing
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,37 +0,0 @@
|
||||
staging_rollback_licensing:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback licensing
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-licensing
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
except:
|
||||
- $SMOKE_TEST_STATUS == "success"
|
||||
|
||||
production_rollback_licensing:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback licensing
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-licensing
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
@@ -1,26 +0,0 @@
|
||||
## LighthouseRunner
|
||||
audit_LighthouseRunner:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_LighthouseRunner LighthouseRunner`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd LighthouseRunner
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_LighthouseRunner LighthouseRunner
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,29 +0,0 @@
|
||||
## PHP SDK
|
||||
audit_PhpSDK:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_PhpSDK PhpSDK`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo lsb_release -a
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- sudo apt install -y software-properties-common
|
||||
- sudo add-apt-repository -y ppa:ondrej/php
|
||||
- sudo apt install -y php7.3 php7.3-common php7.3-opcache php7.3-cli php7.3-gd php7.3-curl php7.3-mysql php7.3-xml php7.3-mbstring
|
||||
- sudo apt-get install -y composer
|
||||
- cd PhpSDK
|
||||
- composer install
|
||||
- composer lint
|
||||
- composer analyze
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_PhpSDK PhpSDK
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,32 +0,0 @@
|
||||
test_PhpSDK:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_PhpSDK PhpSDK backend`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- curl -sSL https://get.docker.com/ | sh #Install docker.
|
||||
- sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
|
||||
- sudo apt install -y software-properties-common
|
||||
- sudo add-apt-repository -y ppa:ondrej/php
|
||||
- sudo apt install -y php7.3 php7.3-common php7.3-opcache php7.3-cli php7.3-gd php7.3-curl php7.3-mysql php7.3-xml php7.3-mbstring
|
||||
- echo "Setup machine for running log js tests"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env -e ENCRYPTION_KEY=$ENCRYPTION_KEY --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- cd PhpSDK
|
||||
- composer install
|
||||
- composer test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_PhpSDK PhpSDK backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,75 +0,0 @@
|
||||
## DEPLOYMENT STAGE - PHP SDK
|
||||
staging_PhpSDK:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt --fix-broken install -y
|
||||
- sudo lsb_release -a
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- sudo apt install -y software-properties-common
|
||||
- sudo add-apt-repository -y ppa:ondrej/php
|
||||
- sudo apt install -y php7.3 php7.3-common php7.3-opcache php7.3-cli php7.3-gd php7.3-curl php7.3-mysql php7.3-xml php7.3-mbstring
|
||||
- cd PhpSDK
|
||||
- sudo apt-get install -y composer
|
||||
- sudo npm install -g json composer-version
|
||||
- git init
|
||||
# - git add .
|
||||
# - git commit -m "staging commit version 5.0.$CI_PIPELINE_ID"
|
||||
- chmod +x ../ci/scripts/version-setup.sh
|
||||
- ../ci/scripts/version-setup.sh
|
||||
- composer-version patch
|
||||
- json -I -f composer.json -e 'this.name="oneuptime/sdk-staging"'
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "staging commit version 5.0.$CI_PIPELINE_ID"
|
||||
- git checkout staging || git checkout -b staging
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/PhpSDK.git staging --force
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- hotfix-master
|
||||
environment:
|
||||
name: staging
|
||||
|
||||
production_PhpSDK:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt --fix-broken install -y
|
||||
- sudo lsb_release -a
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- sudo apt install -y software-properties-common
|
||||
- sudo add-apt-repository -y ppa:ondrej/php
|
||||
- sudo apt install -y php7.3 php7.3-common php7.3-opcache php7.3-cli php7.3-gd php7.3-curl php7.3-mysql php7.3-xml php7.3-mbstring
|
||||
- cd PhpSDK
|
||||
- sudo apt-get install -y composer
|
||||
- sudo npm install -g json composer-version
|
||||
- git init
|
||||
- git config --global user.email "gitlab-runner@gitlab-shell-runner.com"
|
||||
- git config --global user.name "Gitlab Runner"
|
||||
- git add .
|
||||
- git commit -m "production commit version 5.0.$CI_PIPELINE_ID" || echo "Nothing to update because no changes to sdk was made" && exit 0
|
||||
- git checkout -f master
|
||||
- composer-version patch
|
||||
- json -I -f composer.json -e 'this.name="oneuptime/sdk"'
|
||||
- git add .
|
||||
- git commit -m "production commit version 5.0.$CI_PIPELINE_ID" || echo "Nothing to update because no changes to sdk was made" && exit 0
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/PhpSDK.git master --force
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- hotfix-release
|
||||
environment:
|
||||
name: production
|
||||
@@ -1,26 +0,0 @@
|
||||
## ProbeAPI
|
||||
audit_ProbeAPI:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_ProbeAPI ProbeAPI`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd ProbeAPI
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_ProbeAPI ProbeAPI
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,59 +0,0 @@
|
||||
production_ProbeAPI:
|
||||
stage: Deploy
|
||||
retry: 2
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/version-setup.sh
|
||||
- ./ci/scripts/version-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
- sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- sudo docker buildx create --use
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:5.0.$CI_PIPELINE_ID --push ./ProbeAPI
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:latest --push ./ProbeAPI
|
||||
- kubectl set image deployment/fi-ProbeAPI fi-ProbeAPI=oneuptime/ProbeAPI:5.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- ./ci/scripts/deployment-cleanup.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- hotfix-release
|
||||
environment:
|
||||
name: production
|
||||
|
||||
# DEPLOYMENT STAGE
|
||||
staging_ProbeAPI:
|
||||
stage: Deploy
|
||||
retry: 2
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/version-setup.sh
|
||||
- ./ci/scripts/version-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ProbeAPI.
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- sudo docker buildx create --use
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:5.0.$CI_PIPELINE_ID --push ./ProbeAPI
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:test --push ./ProbeAPI
|
||||
- kubectl set image deployment/fi-ProbeAPI fi-ProbeAPI=oneuptime/ProbeAPI:5.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- ./ci/scripts/deployment-cleanup.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- hotfix-master
|
||||
environment:
|
||||
name: staging
|
||||
@@ -1,26 +0,0 @@
|
||||
## PROBE
|
||||
audit_probe:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_probe probe`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd probe
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_probe probe
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,62 +0,0 @@
|
||||
production_probe:
|
||||
stage: Deploy
|
||||
retry: 2
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/version-setup.sh
|
||||
- ./ci/scripts/version-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
- sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- sudo docker buildx create --use
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:5.0.$CI_PIPELINE_ID --push ./probe
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:latest --push ./probe
|
||||
- kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:5.0.$CI_PIPELINE_ID
|
||||
- kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:5.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- ./ci/scripts/deployment-cleanup.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- hotfix-release
|
||||
environment:
|
||||
name: production
|
||||
|
||||
# DEPLOYMENT STAGE - Probe
|
||||
staging_probe:
|
||||
stage: Deploy
|
||||
retry: 2
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/version-setup.sh
|
||||
- ./ci/scripts/version-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe.
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- sudo docker buildx create --use
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:5.0.$CI_PIPELINE_ID --push ./probe
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:test --push ./probe
|
||||
- kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:5.0.$CI_PIPELINE_ID
|
||||
# Additionally update probe1 deployment as well.
|
||||
- kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:5.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- ./ci/scripts/deployment-cleanup.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- hotfix-master
|
||||
environment:
|
||||
name: staging
|
||||
@@ -1,28 +0,0 @@
|
||||
## PYTHON SDK
|
||||
audit_PythonSDK:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_PythonSDK PythonSDK`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y python3-pip
|
||||
- cd PythonSDK
|
||||
- pip3 install -r requirements.txt
|
||||
# TODO audit and dep-check library for Python
|
||||
# - npm run audit
|
||||
# - npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_PythonSDK PythonSDK
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
- feature-PythonSDK
|
||||
@@ -1,30 +0,0 @@
|
||||
test_PythonSDK:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_PythonSDK PythonSDK backend`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- curl -sSL https://get.docker.com/ | sh #Install docker.
|
||||
- sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libgbm-dev
|
||||
- echo "Setup machine for running log python tests"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env -e ENCRYPTION_KEY=$ENCRYPTION_KEY --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- sudo apt-get install -y python3-pip
|
||||
- cd PythonSDK
|
||||
- pip3 install -r requirements.txt
|
||||
- python3 -m unittest discover -s oneuptime_sdk/tests
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_PythonSDK PythonSDK backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,68 +0,0 @@
|
||||
## DEPLOYMENT STAGE - PYTHON SDK
|
||||
staging_PythonSDK:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt --fix-broken install -y
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- sudo apt-get install -y python3-pip
|
||||
- cd PythonSDK
|
||||
- pip3 install -r requirements.txt
|
||||
# - git init
|
||||
# - git add .
|
||||
# - git commit -m "staging commit version 5.0.$CI_PIPELINE_ID"
|
||||
- bumpversion --new-version 5.0.$CI_PIPELINE_ID patch setup.py
|
||||
- python3 setup.py sdist bdist_wheel
|
||||
- twine check dist/*
|
||||
- twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u=$PyPi_USERNAME -p=$PyPi_PASSWORD
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "staging commit version 5.0.$CI_PIPELINE_ID"
|
||||
- git checkout staging || git checkout -b staging
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/PythonSDK.git staging --force
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- hotfix-master
|
||||
environment:
|
||||
name: staging
|
||||
|
||||
## DEPLOYMENT STAGE - PYTHON SDK
|
||||
production_PythonSDK:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt --fix-broken install -y
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- sudo apt-get install -y python3-pip
|
||||
- cd PythonSDK
|
||||
- pip3 install -r requirements.txt
|
||||
- bumpversion --new-version 5.0.$CI_PIPELINE_ID patch setup.py
|
||||
- python3 setup.py sdist bdist_wheel
|
||||
- twine check dist/*
|
||||
- twine upload dist/* -u=$PyPi_USERNAME -p=$PyPi_PASSWORD
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "production commit version 5.0.$CI_PIPELINE_ID" || echo "Nothing to update because no changes to sdk was made" && exit 0
|
||||
- git checkout -f master
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/PythonSDK.git master --force
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- hotfix-release
|
||||
environment:
|
||||
name: staging
|
||||
@@ -1,26 +0,0 @@
|
||||
## REALTIME
|
||||
audit_realtime:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_realtime realtime`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd realtime
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_realtime realtime
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,59 +0,0 @@
|
||||
production_realtime:
|
||||
stage: Deploy
|
||||
retry: 2
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/version-setup.sh
|
||||
- ./ci/scripts/version-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
- sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- sudo docker buildx create --use
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:5.0.$CI_PIPELINE_ID --push ./realtime
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:latest --push ./realtime
|
||||
- kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:5.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- ./ci/scripts/deployment-cleanup.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- hotfix-release
|
||||
environment:
|
||||
name: production
|
||||
|
||||
# DEPLOYMENT STAGE - REALTIME
|
||||
staging_realtime:
|
||||
stage: Deploy
|
||||
retry: 2
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/version-setup.sh
|
||||
- ./ci/scripts/version-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy realtime.
|
||||
- sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- sudo docker buildx create --use
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:5.0.$CI_PIPELINE_ID --push ./realtime
|
||||
- sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:test --push ./realtime
|
||||
- kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:5.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- ./ci/scripts/deployment-cleanup.sh
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- hotfix-master
|
||||
environment:
|
||||
name: staging
|
||||
@@ -1,30 +0,0 @@
|
||||
## RUBY SDK
|
||||
audit_ruby-sdk:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_ruby-sdk ruby-sdk`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt install -y rbenv
|
||||
- ruby -v
|
||||
- gem env home
|
||||
- cd ruby-sdk/oneuptime
|
||||
- sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
|
||||
- which bundle
|
||||
- gem list bundler
|
||||
- bundle install
|
||||
- cd ..
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_ruby-sdk ruby-sdk
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
@@ -1,33 +0,0 @@
|
||||
test_ruby-sdk:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_ruby-sdk ruby-sdk backend`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- curl -sSL https://get.docker.com/ | sh #Install docker.
|
||||
- sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libgbm-dev
|
||||
- echo "Setup machine for running ruby sdk tests"
|
||||
- sudo docker stop $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker rm $(sudo docker ps -aq) || echo 'No docker containers'
|
||||
- sudo docker run --name mongo -p 27017:27017 -d mongo:4.2.3
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:7.0.3 redis-server
|
||||
- sudo docker build -t oneuptime/backend:5.0.$CI_PIPELINE_ID ./backend
|
||||
- sudo docker run --env-file ./backend/.env -e ENCRYPTION_KEY=$ENCRYPTION_KEY --net=host -d oneuptime/backend:5.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- sudo apt install -y rbenv
|
||||
- cd ruby-sdk/oneuptime
|
||||
- sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
|
||||
- bundle --version
|
||||
- bundle install
|
||||
- bundle exec rspec
|
||||
- cd ..
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_ruby-sdk ruby-sdk backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
refs:
|
||||
- hotfix-master
|
||||
- hotfix-release
|
||||
@@ -1,90 +0,0 @@
|
||||
## DEPLOYMENT STAGE - RUBY SDK
|
||||
staging_ruby-sdk:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt --fix-broken install -y
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- sudo apt install -y rbenv
|
||||
# - sudo gem install bundler
|
||||
- cd ruby-sdk/oneuptime
|
||||
- sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
|
||||
- bundle install
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "staging commit version 5.0.$CI_PIPELINE_ID"
|
||||
- mkdir -p ~/.gem
|
||||
- GEMPATH=~/.gem/credentials
|
||||
- rm $GEMPATH || true # reomve previous saved file or just continue if it doesnt exist (new container)
|
||||
- touch $GEMPATH # start recreation
|
||||
- CUSTOMSPACE=' '
|
||||
- echo "---" >> $GEMPATH
|
||||
- echo ":oneuptimegem:$CUSTOMSPACE$RUBYGEM_API_KEY" >> $GEMPATH
|
||||
- chmod 0600 $GEMPATH
|
||||
- bundle exec gem bump -v 5.0.$CI_PIPELINE_ID-qa
|
||||
- gem build oneuptime.gemspec
|
||||
- gem push oneuptime-5.0.$CI_PIPELINE_ID.pre.qa.gem -k oneuptimegem
|
||||
- git checkout staging || git checkout -b staging
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/ruby-sdk.git staging --force
|
||||
- cd ..
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- hotfix-master
|
||||
environment:
|
||||
name: staging
|
||||
|
||||
production_ruby-sdk:
|
||||
stage: Deploy
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
script:
|
||||
- sudo apt-get update
|
||||
- sudo apt --fix-broken install -y
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||
- sudo apt install -y rbenv
|
||||
# - sudo gem install bundler
|
||||
- cd ruby-sdk/oneuptime
|
||||
- sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
|
||||
- bundle install
|
||||
- git init
|
||||
- git add .
|
||||
- git commit -m "production commit version 5.0.$CI_PIPELINE_ID" || echo "Nothing to update because no changes to sdk was made" && exit 0
|
||||
- pwd -P
|
||||
- git checkout -f master
|
||||
- pwd -P
|
||||
- mkdir -p ~/.gem
|
||||
- GEMPATH=~/.gem/credentials
|
||||
- rm $GEMPATH || true # reomve previous saved file or just continue if it doesnt exist (new container)
|
||||
- touch $GEMPATH # start recreation
|
||||
- CUSTOMSPACE=' '
|
||||
- echo "---" >> $GEMPATH
|
||||
- echo ":oneuptimegem:$CUSTOMSPACE$RUBYGEM_API_KEY" >> $GEMPATH
|
||||
- chmod 0600 $GEMPATH
|
||||
- ls -l
|
||||
- pwd -P
|
||||
- bundle exec gem bump -v 5.0.$CI_PIPELINE_ID
|
||||
- gem build oneuptime.gemspec
|
||||
- gem push oneuptime-5.0.$CI_PIPELINE_ID.gem -k oneuptimegem
|
||||
# - git add .
|
||||
# - git commit -m "production commit version 5.0.$CI_PIPELINE_ID" || echo "Nothing to update because no changes to sdk was made" && exit 0
|
||||
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/ruby-sdk.git master --force
|
||||
- cd ..
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- release
|
||||
- hotfix-release
|
||||
environment:
|
||||
name: production
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user