diff --git a/.github/workflows/image-deployment-release.yml b/.github/workflows/image-deployment-release.yml index 3d914bb23f..30b85b1360 100644 --- a/.github/workflows/image-deployment-release.yml +++ b/.github/workflows/image-deployment-release.yml @@ -24,7 +24,7 @@ jobs: # 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 --tag oneuptime/workflow:release --push -f ./Workflow/Dockerfile . + - 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 @@ -43,7 +43,7 @@ jobs: # 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 --tag oneuptime/workers:release --push -f ./Workers/Dockerfile . + - 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 @@ -62,7 +62,7 @@ jobs: # 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 --tag oneuptime/status-page:release --push -f ./StatusPage/Dockerfile . + - 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 @@ -81,7 +81,7 @@ jobs: # 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 --tag oneuptime/realtime:release --push -f ./Realtime/Dockerfile . + - 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: @@ -101,7 +101,7 @@ jobs: # 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 --tag oneuptime/probe-api:release --push -f ./ProbeAPI/Dockerfile . + - 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 @@ -120,7 +120,7 @@ jobs: # 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 --tag oneuptime/nginx:release --push -f ./Nginx/Dockerfile . + - 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: @@ -139,7 +139,7 @@ jobs: # 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 --tag oneuptime/mail:release --push -f ./Mail/Dockerfile . + - 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: @@ -159,7 +159,7 @@ jobs: # 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 --tag oneuptime/licensing:release --push -f ./Licensing/Dockerfile . + - 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 @@ -178,7 +178,7 @@ jobs: # 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 --tag oneuptime/integrations:release --push -f ./Integration/Dockerfile . + - 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 . @@ -200,7 +200,7 @@ jobs: # 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 --tag oneuptime/identity:release --push -f ./Identity/Dockerfile . + - 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: @@ -220,7 +220,7 @@ jobs: # 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 --tag oneuptime/home:release --push -f ./Home/Dockerfile . + - 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: @@ -240,7 +240,7 @@ jobs: # 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 --tag oneuptime/helm-chart:release --push -f ./HelmChart/Dockerfile . + - 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: @@ -260,7 +260,7 @@ jobs: # 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 --tag oneuptime/haraka:release --push -f ./Haraka/Dockerfile . + - 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 @@ -278,7 +278,7 @@ jobs: # 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 --tag oneuptime/file:release --push -f ./File/Dockerfile . + - 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 . @@ -299,7 +299,7 @@ jobs: # 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 --tag oneuptime/dashboard:release --push -f ./Dashboard/Dockerfile . + - 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 . @@ -321,7 +321,7 @@ jobs: # 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 --tag oneuptime/dashboard-api:release --push -f ./DashboardAPI/Dockerfile . + - 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 . @@ -343,7 +343,7 @@ jobs: # 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 --tag oneuptime/api-reference:release --push -f ./ApiReference/Dockerfile . + - 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 . @@ -365,7 +365,7 @@ jobs: # 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 --tag oneuptime/alert:release --push -f ./Alert/Dockerfile . + - 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 . @@ -387,6 +387,6 @@ jobs: # 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 --tag oneuptime/accounts:release --push -f ./Accounts/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.accounts.yaml b/.github/workflows/image-deployment.test.accounts.yaml index ad99de743c..9b99be550a 100644 --- a/.github/workflows/image-deployment.test.accounts.yaml +++ b/.github/workflows/image-deployment.test.accounts.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/accounts:test --push -f ./Accounts/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.alert.yaml b/.github/workflows/image-deployment.test.alert.yaml index 7324b6e757..dc159e7289 100644 --- a/.github/workflows/image-deployment.test.alert.yaml +++ b/.github/workflows/image-deployment.test.alert.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/alert:test --push -f ./Alert/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.api-reference.yaml b/.github/workflows/image-deployment.test.api-reference.yaml index 715e029254..eb6996b9e9 100644 --- a/.github/workflows/image-deployment.test.api-reference.yaml +++ b/.github/workflows/image-deployment.test.api-reference.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/api-reference:test --push -f ./ApiReference/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.dashboard-api.yaml b/.github/workflows/image-deployment.test.dashboard-api.yaml index fe7c7186b8..f4d4d5e6cd 100644 --- a/.github/workflows/image-deployment.test.dashboard-api.yaml +++ b/.github/workflows/image-deployment.test.dashboard-api.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/dashboard-api:test --push -f ./DashboardAPI/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.dashboard.yaml b/.github/workflows/image-deployment.test.dashboard.yaml index c67cd6bd54..7398454a4e 100644 --- a/.github/workflows/image-deployment.test.dashboard.yaml +++ b/.github/workflows/image-deployment.test.dashboard.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/dashboard:test --push -f ./Dashboard/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.file.yaml b/.github/workflows/image-deployment.test.file.yaml index b402aed943..acb9b9764c 100644 --- a/.github/workflows/image-deployment.test.file.yaml +++ b/.github/workflows/image-deployment.test.file.yaml @@ -22,6 +22,6 @@ jobs: # 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 --tag oneuptime/file:test --push -f ./File/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.haraka.yaml b/.github/workflows/image-deployment.test.haraka.yaml index 3bc24a3c7e..f14ea5a801 100644 --- a/.github/workflows/image-deployment.test.haraka.yaml +++ b/.github/workflows/image-deployment.test.haraka.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/haraka:test --push -f ./Haraka/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.helm-chart.yaml b/.github/workflows/image-deployment.test.helm-chart.yaml index 2d92270e4a..01bf2a4a41 100644 --- a/.github/workflows/image-deployment.test.helm-chart.yaml +++ b/.github/workflows/image-deployment.test.helm-chart.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/helm-chart:test --push -f ./HelmChart/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.home.yaml b/.github/workflows/image-deployment.test.home.yaml index b653cc0823..6e3bd7b73f 100644 --- a/.github/workflows/image-deployment.test.home.yaml +++ b/.github/workflows/image-deployment.test.home.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/home:test --push -f ./Home/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.identity.yaml b/.github/workflows/image-deployment.test.identity.yaml index b42d2bee52..9af1f0c858 100644 --- a/.github/workflows/image-deployment.test.identity.yaml +++ b/.github/workflows/image-deployment.test.identity.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/identity:test --push -f ./Identity/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.integration.yaml b/.github/workflows/image-deployment.test.integration.yaml index fcac406c51..a1f205058a 100644 --- a/.github/workflows/image-deployment.test.integration.yaml +++ b/.github/workflows/image-deployment.test.integration.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/integrations:test --push -f ./Integration/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.licensing.yaml b/.github/workflows/image-deployment.test.licensing.yaml index 7758b889c9..a505b1609a 100644 --- a/.github/workflows/image-deployment.test.licensing.yaml +++ b/.github/workflows/image-deployment.test.licensing.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/licensing:test --push -f ./Licensing/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.mail.yaml b/.github/workflows/image-deployment.test.mail.yaml index 9f6e373faf..384054bca0 100644 --- a/.github/workflows/image-deployment.test.mail.yaml +++ b/.github/workflows/image-deployment.test.mail.yaml @@ -22,6 +22,6 @@ jobs: # 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 --tag oneuptime/mail:test --push -f ./Mail/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.nginx.yml b/.github/workflows/image-deployment.test.nginx.yml index 07d86f9052..a8cc820892 100644 --- a/.github/workflows/image-deployment.test.nginx.yml +++ b/.github/workflows/image-deployment.test.nginx.yml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/nginx:test --push -f ./Nginx/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.probe-api.yaml b/.github/workflows/image-deployment.test.probe-api.yaml index 693de88516..a0f4235f83 100644 --- a/.github/workflows/image-deployment.test.probe-api.yaml +++ b/.github/workflows/image-deployment.test.probe-api.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/probe-api:test --push -f ./ProbeAPI/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.realtime.yaml b/.github/workflows/image-deployment.test.realtime.yaml index ff830d5b99..27c81da035 100644 --- a/.github/workflows/image-deployment.test.realtime.yaml +++ b/.github/workflows/image-deployment.test.realtime.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/realtime:test --push -f ./Realtime/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.status-page.yaml b/.github/workflows/image-deployment.test.status-page.yaml index 1f902ddc59..b02a15cce0 100644 --- a/.github/workflows/image-deployment.test.status-page.yaml +++ b/.github/workflows/image-deployment.test.status-page.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/status-page:test --push -f ./StatusPage/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.workers.yaml b/.github/workflows/image-deployment.test.workers.yaml index 4e7968eda8..512a276052 100644 --- a/.github/workflows/image-deployment.test.workers.yaml +++ b/.github/workflows/image-deployment.test.workers.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/workers:test --push -f ./Workers/Dockerfile . + - 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 . diff --git a/.github/workflows/image-deployment.test.workflow.yaml b/.github/workflows/image-deployment.test.workflow.yaml index 20cac88c9a..be0ae3e296 100644 --- a/.github/workflows/image-deployment.test.workflow.yaml +++ b/.github/workflows/image-deployment.test.workflow.yaml @@ -23,6 +23,6 @@ jobs: # 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 --tag oneuptime/workflow:test --push -f ./Workflow/Dockerfile . + - 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 . diff --git a/Ci/scripts/version-setup.sh b/Ci/scripts/version-setup.sh index cce7f8dcd4..5e70b471ae 100755 --- a/Ci/scripts/version-setup.sh +++ b/Ci/scripts/version-setup.sh @@ -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 .. } diff --git a/Ci/spec/accounts/lighthouse.yaml b/Ci/spec/accounts/lighthouse.yaml deleted file mode 100644 index 0aba9ff409..0000000000 --- a/Ci/spec/accounts/lighthouse.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/accounts/rollback.yaml b/Ci/spec/accounts/rollback.yaml deleted file mode 100644 index 89d3078bbf..0000000000 --- a/Ci/spec/accounts/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/admin-dashboard/audit.yaml b/Ci/spec/admin-dashboard/audit.yaml deleted file mode 100644 index 6b2b90669c..0000000000 --- a/Ci/spec/admin-dashboard/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/admin-dashboard/rollback.yaml b/Ci/spec/admin-dashboard/rollback.yaml deleted file mode 100644 index 80e789820e..0000000000 --- a/Ci/spec/admin-dashboard/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/api-docs/audit.yaml b/Ci/spec/api-docs/audit.yaml deleted file mode 100644 index d69971e146..0000000000 --- a/Ci/spec/api-docs/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/api-docs/rollback.yaml b/Ci/spec/api-docs/rollback.yaml deleted file mode 100644 index 16c93d7523..0000000000 --- a/Ci/spec/api-docs/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/application-scanner/audit.yaml b/Ci/spec/application-scanner/audit.yaml deleted file mode 100644 index d18a5c857e..0000000000 --- a/Ci/spec/application-scanner/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/backend/audit.yaml b/Ci/spec/backend/audit.yaml deleted file mode 100644 index 3b9c532554..0000000000 --- a/Ci/spec/backend/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/backend/build-n-test.yaml b/Ci/spec/backend/build-n-test.yaml deleted file mode 100644 index 6024c443cb..0000000000 --- a/Ci/spec/backend/build-n-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/backend/rollback.yaml b/Ci/spec/backend/rollback.yaml deleted file mode 100644 index 2eb6d30d6b..0000000000 --- a/Ci/spec/backend/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/container-scanner/audit.yaml b/Ci/spec/container-scanner/audit.yaml deleted file mode 100644 index b69ecc7044..0000000000 --- a/Ci/spec/container-scanner/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/dashboard/audit.yaml b/Ci/spec/dashboard/audit.yaml deleted file mode 100644 index 8ec843a183..0000000000 --- a/Ci/spec/dashboard/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/dashboard/rollback.yaml b/Ci/spec/dashboard/rollback.yaml deleted file mode 100644 index 32d151857b..0000000000 --- a/Ci/spec/dashboard/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/data-ingestor/audit.yaml b/Ci/spec/data-ingestor/audit.yaml deleted file mode 100644 index e848fa964f..0000000000 --- a/Ci/spec/data-ingestor/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/data-ingestor/rollback.yaml b/Ci/spec/data-ingestor/rollback.yaml deleted file mode 100644 index af94b7a5af..0000000000 --- a/Ci/spec/data-ingestor/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/e2e/docker-compose-enterprise-test.yaml b/Ci/spec/e2e/docker-compose-enterprise-test.yaml deleted file mode 100644 index e8902360a6..0000000000 --- a/Ci/spec/e2e/docker-compose-enterprise-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/e2e/docker-compose-test.yaml b/Ci/spec/e2e/docker-compose-test.yaml deleted file mode 100644 index 198608b7ac..0000000000 --- a/Ci/spec/e2e/docker-compose-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/e2e/kubernetes-enterprise-test.yaml b/Ci/spec/e2e/kubernetes-enterprise-test.yaml deleted file mode 100644 index 0090042bbd..0000000000 --- a/Ci/spec/e2e/kubernetes-enterprise-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/e2e/kubernetes-test.yaml b/Ci/spec/e2e/kubernetes-test.yaml deleted file mode 100644 index f191c92919..0000000000 --- a/Ci/spec/e2e/kubernetes-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/global/rollback.yaml b/Ci/spec/global/rollback.yaml deleted file mode 100644 index e56c3421bd..0000000000 --- a/Ci/spec/global/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/go-sdk/audit.yaml b/Ci/spec/go-sdk/audit.yaml deleted file mode 100644 index 2057950f7e..0000000000 --- a/Ci/spec/go-sdk/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/go-sdk/build-n-test.yaml b/Ci/spec/go-sdk/build-n-test.yaml deleted file mode 100644 index 56c3b5d536..0000000000 --- a/Ci/spec/go-sdk/build-n-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/go-sdk/deploy.yaml b/Ci/spec/go-sdk/deploy.yaml deleted file mode 100644 index f4e1885e50..0000000000 --- a/Ci/spec/go-sdk/deploy.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/helm-chart/audit.yaml b/Ci/spec/helm-chart/audit.yaml deleted file mode 100644 index e21b554eed..0000000000 --- a/Ci/spec/helm-chart/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/helm-chart/build-n-test.yaml b/Ci/spec/helm-chart/build-n-test.yaml deleted file mode 100644 index 9ec130b981..0000000000 --- a/Ci/spec/helm-chart/build-n-test.yaml +++ /dev/null @@ -1,8 +0,0 @@ -test_HelmChart: - stage: BuildAndTest - script: - - echo "No test implemented" - except: - refs: - - hotfix-master - - hotfix-release diff --git a/Ci/spec/helm-chart/rollback.yaml b/Ci/spec/helm-chart/rollback.yaml deleted file mode 100644 index e16dbf3498..0000000000 --- a/Ci/spec/helm-chart/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/home/audit.yaml b/Ci/spec/home/audit.yaml deleted file mode 100644 index a1fc21fc7a..0000000000 --- a/Ci/spec/home/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/home/lighthouse.yaml b/Ci/spec/home/lighthouse.yaml deleted file mode 100644 index 894ac2f209..0000000000 --- a/Ci/spec/home/lighthouse.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/home/rollback.yaml b/Ci/spec/home/rollback.yaml deleted file mode 100644 index 3291b0b015..0000000000 --- a/Ci/spec/home/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/http-test-server/audit.yaml b/Ci/spec/http-test-server/audit.yaml deleted file mode 100644 index 4d3caca2bd..0000000000 --- a/Ci/spec/http-test-server/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/http-test-server/rollback.yaml b/Ci/spec/http-test-server/rollback.yaml deleted file mode 100644 index 2e985bb47d..0000000000 --- a/Ci/spec/http-test-server/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/init-script/audit.yaml b/Ci/spec/init-script/audit.yaml deleted file mode 100644 index d4dafd1fe1..0000000000 --- a/Ci/spec/init-script/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/init-script/deploy.yaml b/Ci/spec/init-script/deploy.yaml deleted file mode 100644 index 26062423ef..0000000000 --- a/Ci/spec/init-script/deploy.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/java-sdk/audit.yaml b/Ci/spec/java-sdk/audit.yaml deleted file mode 100644 index d3c6d03d0e..0000000000 --- a/Ci/spec/java-sdk/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/java-sdk/build-n-test.yaml b/Ci/spec/java-sdk/build-n-test.yaml deleted file mode 100644 index 81355e1a79..0000000000 --- a/Ci/spec/java-sdk/build-n-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/java-sdk/deploy.yaml b/Ci/spec/java-sdk/deploy.yaml deleted file mode 100644 index 493a9d3170..0000000000 --- a/Ci/spec/java-sdk/deploy.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/js-sdk/audit.yaml b/Ci/spec/js-sdk/audit.yaml deleted file mode 100644 index 9d97e74200..0000000000 --- a/Ci/spec/js-sdk/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/js-sdk/build-n-test.yaml b/Ci/spec/js-sdk/build-n-test.yaml deleted file mode 100644 index 5c527c02e4..0000000000 --- a/Ci/spec/js-sdk/build-n-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/licensing/audit.yaml b/Ci/spec/licensing/audit.yaml deleted file mode 100644 index f08e28c212..0000000000 --- a/Ci/spec/licensing/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/licensing/build-n-test.yaml b/Ci/spec/licensing/build-n-test.yaml deleted file mode 100644 index 5f1dac4028..0000000000 --- a/Ci/spec/licensing/build-n-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/licensing/rollback.yaml b/Ci/spec/licensing/rollback.yaml deleted file mode 100644 index d624a60db3..0000000000 --- a/Ci/spec/licensing/rollback.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/lighthouse-runner/audit.yaml b/Ci/spec/lighthouse-runner/audit.yaml deleted file mode 100644 index b9e53c989b..0000000000 --- a/Ci/spec/lighthouse-runner/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/php-sdk/audit.yaml b/Ci/spec/php-sdk/audit.yaml deleted file mode 100644 index f3554d092c..0000000000 --- a/Ci/spec/php-sdk/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/php-sdk/build-n-test.yaml b/Ci/spec/php-sdk/build-n-test.yaml deleted file mode 100644 index 36f56f5cc2..0000000000 --- a/Ci/spec/php-sdk/build-n-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/php-sdk/deploy.yaml b/Ci/spec/php-sdk/deploy.yaml deleted file mode 100644 index 143c362636..0000000000 --- a/Ci/spec/php-sdk/deploy.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/probe-api/audit.yaml b/Ci/spec/probe-api/audit.yaml deleted file mode 100644 index 9e45048bb4..0000000000 --- a/Ci/spec/probe-api/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/probe-api/deploy.yaml b/Ci/spec/probe-api/deploy.yaml deleted file mode 100644 index f610f02d5c..0000000000 --- a/Ci/spec/probe-api/deploy.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/probe/audit.yaml b/Ci/spec/probe/audit.yaml deleted file mode 100644 index 7532dbeb4a..0000000000 --- a/Ci/spec/probe/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/probe/deploy.yaml b/Ci/spec/probe/deploy.yaml deleted file mode 100644 index bee6d5c982..0000000000 --- a/Ci/spec/probe/deploy.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/python-sdk/audit.yaml b/Ci/spec/python-sdk/audit.yaml deleted file mode 100644 index 6c5c357b44..0000000000 --- a/Ci/spec/python-sdk/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/python-sdk/build-n-test.yaml b/Ci/spec/python-sdk/build-n-test.yaml deleted file mode 100644 index 3a47de7101..0000000000 --- a/Ci/spec/python-sdk/build-n-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/python-sdk/deploy.yaml b/Ci/spec/python-sdk/deploy.yaml deleted file mode 100644 index c1524f1b6f..0000000000 --- a/Ci/spec/python-sdk/deploy.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/realtime/audit.yaml b/Ci/spec/realtime/audit.yaml deleted file mode 100644 index fc0d0aecb6..0000000000 --- a/Ci/spec/realtime/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/realtime/deploy.yaml b/Ci/spec/realtime/deploy.yaml deleted file mode 100644 index b1ed2d3d15..0000000000 --- a/Ci/spec/realtime/deploy.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/ruby-sdk/audit.yaml b/Ci/spec/ruby-sdk/audit.yaml deleted file mode 100644 index f2a451e5c0..0000000000 --- a/Ci/spec/ruby-sdk/audit.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/ruby-sdk/build-n-test.yaml b/Ci/spec/ruby-sdk/build-n-test.yaml deleted file mode 100644 index 47d8d898ed..0000000000 --- a/Ci/spec/ruby-sdk/build-n-test.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/ruby-sdk/deploy.yaml b/Ci/spec/ruby-sdk/deploy.yaml deleted file mode 100644 index 00ade19672..0000000000 --- a/Ci/spec/ruby-sdk/deploy.yaml +++ /dev/null @@ -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 diff --git a/Ci/spec/script-runner/audit.yaml b/Ci/spec/script-runner/audit.yaml deleted file mode 100644 index ebc6087107..0000000000 --- a/Ci/spec/script-runner/audit.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# BACKEND -audit_ScriptRunner: - stage: BuildAndTest - allow_failure: true - script: - - chmod +x ./ci/scripts/checkhash.sh - - export next_stage=`./ci/scripts/checkhash.sh audit_ScriptRunner ScriptRunner` - - 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 ScriptRunner - - npm install - - npm run audit - - npm run dep-check - - cd .. - - chmod +x ./ci/scripts/storehash.sh - - ./ci/scripts/storehash.sh audit_ScriptRunner ScriptRunner - - chmod +x ./ci/scripts/cleanup.sh - - ./ci/scripts/cleanup.sh - only: - refs: - - master - - release diff --git a/Ci/spec/status-page/audit.yaml b/Ci/spec/status-page/audit.yaml deleted file mode 100644 index 18c4d6dea3..0000000000 --- a/Ci/spec/status-page/audit.yaml +++ /dev/null @@ -1,26 +0,0 @@ -## STATUS PAGE -audit_statuspage: - stage: BuildAndTest - allow_failure: true - script: - - chmod +x ./ci/scripts/checkhash.sh - - export next_stage=`./ci/scripts/checkhash.sh audit_statuspage StatusPage` - - 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 StatusPage - - npm install - - npm run audit - - npm run dep-check - - cd .. - - chmod +x ./ci/scripts/storehash.sh - - ./ci/scripts/storehash.sh audit_statuspage StatusPage - - chmod +x ./ci/scripts/cleanup.sh - - ./ci/scripts/cleanup.sh - only: - refs: - - master - - release diff --git a/Ci/spec/status-page/deploy.yaml b/Ci/spec/status-page/deploy.yaml deleted file mode 100644 index ac5b72311a..0000000000 --- a/Ci/spec/status-page/deploy.yaml +++ /dev/null @@ -1,57 +0,0 @@ -# DEPLOYMENT STAGE - StatusPage -staging_StatusPage: - stage: Deploy - 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 StatusPage. - - 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/StatusPage:5.0.$CI_PIPELINE_ID --push ./StatusPage - - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:test --push ./StatusPage - - kubectl set image deployment/fi-status fi-status=oneuptime/StatusPage: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 - -production_StatusPage: - stage: Deploy - 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/StatusPage:5.0.$CI_PIPELINE_ID --push ./StatusPage - - sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:latest --push ./StatusPage - - kubectl set image deployment/fi-status fi-status=oneuptime/StatusPage: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 diff --git a/Ci/spec/tests/production.yaml b/Ci/spec/tests/production.yaml deleted file mode 100644 index 5868d27b4a..0000000000 --- a/Ci/spec/tests/production.yaml +++ /dev/null @@ -1,23 +0,0 @@ -## SMOKE TEST STAGE -smoke_test_production: - stage: Tests - script: - - export HOME_URL=https://oneuptime.com - - export ACCOUNTS_URL=https://oneuptime.com/accounts - - export DASHBOARD_URL=https://oneuptime.com/dashboard - - export BACKEND_URL=https://oneuptime.com/api - - export STATUSPAGE_URL=https://statuspage.oneuptime.com - - export ApiReference_URL=https://oneuptime.com/docs - - export LICENSING_URL=https://oneuptime.com/license - - cd tests - - npm install - - npm run test - - cd .. - - chmod +x ./ci/scripts/cleanup.sh - - ./ci/scripts/cleanup.sh - only: - refs: - - release - - hotfix-release - environment: - name: production diff --git a/Ci/spec/tests/staging.yaml b/Ci/spec/tests/staging.yaml deleted file mode 100644 index 0e998c33ae..0000000000 --- a/Ci/spec/tests/staging.yaml +++ /dev/null @@ -1,14 +0,0 @@ -smoke_test_staging: - stage: Tests - allow_failure: true - script: - - cd tests - - npm install - - npm run-script staging-test - - cd .. - - chmod +x ./ci/scripts/cleanup.sh - - ./ci/scripts/cleanup.sh - only: - refs: - - master - - hotfix-master diff --git a/Ci/spec/zapier/audit.yaml b/Ci/spec/zapier/audit.yaml deleted file mode 100644 index bb3444929c..0000000000 --- a/Ci/spec/zapier/audit.yaml +++ /dev/null @@ -1,26 +0,0 @@ -##ZAPIER -audit_zapier: - stage: BuildAndTest - allow_failure: true - script: - - chmod +x ./ci/scripts/checkhash.sh - - export next_stage=`./ci/scripts/checkhash.sh audit_zapier zapier` - - 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 zapier - - npm install - - npm run audit - - npm run dep-check - - cd .. - - chmod +x ./ci/scripts/storehash.sh - - ./ci/scripts/storehash.sh audit_zapier zapier - - chmod +x ./ci/scripts/cleanup.sh - - ./ci/scripts/cleanup.sh - only: - refs: - - master - - release diff --git a/Ci/spec/zapier/build-n-test.yaml b/Ci/spec/zapier/build-n-test.yaml deleted file mode 100644 index 9ce593ce7e..0000000000 --- a/Ci/spec/zapier/build-n-test.yaml +++ /dev/null @@ -1,8 +0,0 @@ -test_zapier: - stage: BuildAndTest - script: - - echo "No test implemented" - except: - refs: - - hotfix-master - - hotfix-release