From d1df1beb7828b7fc5e50c678364f353b58d699c5 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Wed, 18 Sep 2019 17:24:17 +0530 Subject: [PATCH 01/34] removed trigger --- azure-pipelines.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0dec0c3..95edfd1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,8 +3,6 @@ # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml -trigger: -- master stages: - stage: Build From eb6636f3d821b91931178c2e7c47516d319037a7 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Wed, 18 Sep 2019 17:31:17 +0530 Subject: [PATCH 02/34] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 95edfd1..182279b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,7 +3,8 @@ # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml - +trigger: +- master stages: - stage: Build displayName: Build stage From 23ce192ee3578c779ea450e1d1df987719df428c Mon Sep 17 00:00:00 2001 From: Raiyan Date: Thu, 19 Sep 2019 11:41:33 +0530 Subject: [PATCH 03/34] added data 3 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5149f9c..4839b66 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ # Infinity-Shell adding data adding data2 +adding data2 From 77a160869f83b92e51d8fa3459d5bff9c9e7d1ef Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 30 Sep 2019 10:33:20 +0530 Subject: [PATCH 04/34] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 182279b..3b673f8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,15 +7,15 @@ trigger: - master stages: - stage: Build - displayName: Build stage + displayName: BuildStage jobs: - - job: Build - displayName: Build job + - job: BuildJob + displayName: BuildJob steps: - script: | echo Hello, world !! echo Replace me with your build steps !! - displayName: 'Build' + displayName: 'Build task' - powershell: Write-Host "Run unit tests for your application..." displayName: 'Unit Testing' - task: PublishPipelineArtifact@0 @@ -23,10 +23,11 @@ stages: inputs: artifactName: drop targetPath: '$(Build.SourcesDirectory)' -- stage: build2 +- stage: DeployStage + displayName: DeployStage jobs: - deployment: DeployJob - displayName: Deploy Job2 + displayName: DeployJob pool: vmImage: Ubuntu-16.04 environment: staging From 055adced55b6a8c52bc5f9198a176c075693ba14 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 30 Sep 2019 10:51:50 +0530 Subject: [PATCH 05/34] added separator --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3b673f8..77ab1b1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -2,6 +2,7 @@ # Start with a minimal pipeline that you can customize to build and deploy your code. # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml +# ---- trigger: - master From 4bd46e743fef5a789916f56c3fca2d16cd403ac1 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 30 Sep 2019 10:58:10 +0530 Subject: [PATCH 06/34] added Buildjob2 and DisplayNames --- azure-pipelines.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 77ab1b1..abf4367 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,11 +7,11 @@ trigger: - master stages: -- stage: Build - displayName: BuildStage +- stage: BuildStage + displayName: BuildStageDN jobs: - - job: BuildJob - displayName: BuildJob + - job: BuildJob1 + displayName: BuildJob1DN steps: - script: | echo Hello, world !! @@ -24,11 +24,16 @@ stages: inputs: artifactName: drop targetPath: '$(Build.SourcesDirectory)' + - job: BuildJob2 + displayName: BuildJob2DN + steps: + - script: | + echo Hello, world !! - stage: DeployStage - displayName: DeployStage + displayName: DeployStageDN jobs: - deployment: DeployJob - displayName: DeployJob + displayName: DeployJobDN pool: vmImage: Ubuntu-16.04 environment: staging From af339a72d29ca6a632fc2202339cba8604aa80e2 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 30 Sep 2019 11:09:05 +0530 Subject: [PATCH 07/34] changed indentation --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index abf4367..cebe2bd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -23,12 +23,13 @@ stages: displayName: Publish Artifacts inputs: artifactName: drop - targetPath: '$(Build.SourcesDirectory)' - - job: BuildJob2 + targetPath: '$(Build.SourcesDirectory)' + - job: BuildJob12 displayName: BuildJob2DN steps: - - script: | - echo Hello, world !! + - script: | + echo Hello, world2 !! + displayName: 'Build task2' - stage: DeployStage displayName: DeployStageDN jobs: @@ -43,4 +44,3 @@ stages: steps: - script: echo Hello - From d88fbd9e4878f532e94f0001ca1aa12994614d91 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 30 Sep 2019 11:20:04 +0530 Subject: [PATCH 08/34] added system debug --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cebe2bd..20496cc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,7 +3,8 @@ # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml # ---- - +variables: + system.debug: true trigger: - master stages: From a0007726dd154d2ce45fb536119ed0329cfe7ac2 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Tue, 1 Oct 2019 14:38:51 +0530 Subject: [PATCH 09/34] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 20496cc..4930d9f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,6 +15,7 @@ stages: displayName: BuildJob1DN steps: - script: | + exit 1 echo Hello, world !! echo Replace me with your build steps !! displayName: 'Build task' From f2573b1d1d4406991983113a5a83dd2a29a98841 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 27 Jan 2020 15:05:36 +0530 Subject: [PATCH 10/34] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-traceability-with-vm.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 azure-pipelines-traceability-with-vm.yml diff --git a/azure-pipelines-traceability-with-vm.yml b/azure-pipelines-traceability-with-vm.yml new file mode 100644 index 0000000..7862792 --- /dev/null +++ b/azure-pipelines-traceability-with-vm.yml @@ -0,0 +1,21 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + + +trigger: +- master + +jobs: +- deployment: deploy # name of the deployment job (A-Z, a-z, 0-9, and underscore) + displayName: deployWeb # friendly name to display in the UI + variables: + var: Hello + environment: rai-vm1 + strategy: + rolling: + maxParallel: 1 + preDeploy: + steps: + - script: echo preDeploy $(var) \ No newline at end of file From ee673f7bfc3f3971360a5e02c7165cda6b5f6634 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 27 Jan 2020 15:06:37 +0530 Subject: [PATCH 11/34] traceability-check2 --- azure-pipelines-traceability-with-vm.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-traceability-with-vm.yml b/azure-pipelines-traceability-with-vm.yml index 7862792..17f470c 100644 --- a/azure-pipelines-traceability-with-vm.yml +++ b/azure-pipelines-traceability-with-vm.yml @@ -3,7 +3,6 @@ # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml - trigger: - master @@ -18,4 +17,7 @@ jobs: maxParallel: 1 preDeploy: steps: - - script: echo preDeploy $(var) \ No newline at end of file + - script: echo preDeploy $(var) + deploy: + steps: + - script: echo deploy $(var) \ No newline at end of file From e9220dc81b6ac8f3ccf07a2a7f803eb4e4981285 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 27 Jan 2020 15:23:29 +0530 Subject: [PATCH 12/34] Update azure-pipelines-traceability-with-vm.yml for Azure Pipelines --- azure-pipelines-traceability-with-vm.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines-traceability-with-vm.yml b/azure-pipelines-traceability-with-vm.yml index 17f470c..1c92623 100644 --- a/azure-pipelines-traceability-with-vm.yml +++ b/azure-pipelines-traceability-with-vm.yml @@ -12,6 +12,7 @@ jobs: variables: var: Hello environment: rai-vm1 + resourceType: VirtualMachine strategy: rolling: maxParallel: 1 From 522e8c2c0a4ac89b8a7c3f5cf18be55ca49d93b6 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 27 Jan 2020 15:25:31 +0530 Subject: [PATCH 13/34] check3 --- azure-pipelines-traceability-with-vm.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-traceability-with-vm.yml b/azure-pipelines-traceability-with-vm.yml index 1c92623..00de81e 100644 --- a/azure-pipelines-traceability-with-vm.yml +++ b/azure-pipelines-traceability-with-vm.yml @@ -11,8 +11,9 @@ jobs: displayName: deployWeb # friendly name to display in the UI variables: var: Hello - environment: rai-vm1 - resourceType: VirtualMachine + environment: + name: rai-vm1 + resourceType: VirtualMachine strategy: rolling: maxParallel: 1 From ef755f9dcdf52564018eb354e4d32ee57a76162a Mon Sep 17 00:00:00 2001 From: Raiyan Date: Fri, 31 Jan 2020 11:45:10 +0530 Subject: [PATCH 14/34] checking timeout --- azure-pipelines.yml | 41 ++++++++--------------------------------- 1 file changed, 8 insertions(+), 33 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4930d9f..6a28911 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,40 +9,15 @@ trigger: - master stages: - stage: BuildStage - displayName: BuildStageDN + displayName: BuildStage jobs: - - job: BuildJob1 - displayName: BuildJob1DN + - job: delayJob + pool: server + displayName: delayJob + timeoutInMinutes: 7 steps: - - script: | - exit 1 - echo Hello, world !! - echo Replace me with your build steps !! - displayName: 'Build task' - - powershell: Write-Host "Run unit tests for your application..." - displayName: 'Unit Testing' - - task: PublishPipelineArtifact@0 - displayName: Publish Artifacts + - task: Delay@1 + timeoutInMinutes: 2 inputs: - artifactName: drop - targetPath: '$(Build.SourcesDirectory)' - - job: BuildJob12 - displayName: BuildJob2DN - steps: - - script: | - echo Hello, world2 !! - displayName: 'Build task2' -- stage: DeployStage - displayName: DeployStageDN - jobs: - - deployment: DeployJob - displayName: DeployJobDN - pool: - vmImage: Ubuntu-16.04 - environment: staging - strategy: - runOnce: - deploy: - steps: - - script: echo Hello + delayForMinutes: '5' From 78758c953a4caf85375c9745b09bf2e609a73320 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Fri, 31 Jan 2020 11:47:36 +0530 Subject: [PATCH 15/34] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a28911..ee30095 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,10 +14,10 @@ stages: - job: delayJob pool: server displayName: delayJob - timeoutInMinutes: 7 + timeoutInMinutes: 4 steps: - task: Delay@1 timeoutInMinutes: 2 inputs: - delayForMinutes: '5' + delayForMinutes: '3' From d8f0593c4eca8d066f5484672e11b9cef68adb76 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Fri, 31 Jan 2020 11:49:33 +0530 Subject: [PATCH 16/34] job has lower timeout 1 min --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ee30095..7aad2fe 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,7 @@ stages: - job: delayJob pool: server displayName: delayJob - timeoutInMinutes: 4 + timeoutInMinutes: 1 steps: - task: Delay@1 timeoutInMinutes: 2 From 10575ebf3c8aeaae147ac37b959b1344e12f7605 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Fri, 31 Jan 2020 11:53:33 +0530 Subject: [PATCH 17/34] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7aad2fe..2ea59c1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,4 +20,16 @@ stages: timeoutInMinutes: 2 inputs: delayForMinutes: '3' - + - job: job2 + displayName: job2 + dependsOn: delayJob + steps: + - script: echo hellowrold! +- stage: QAStage + displayName: QAStage + dependsOn: BuildStage + jobs: + - job: jobinqa + displayName: jobinqa + steps: + - script: echo hellowrold-QA! From 23d21cd5e6cf5003fcb9b6b845ac1f4a664cbb8b Mon Sep 17 00:00:00 2001 From: Raiyan Date: Fri, 31 Jan 2020 12:03:30 +0530 Subject: [PATCH 18/34] default timeout for tasks --- azure-pipelines.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2ea59c1..c28c28d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,12 +14,11 @@ stages: - job: delayJob pool: server displayName: delayJob - timeoutInMinutes: 1 + timeoutInMinutes: 4320 steps: - - task: Delay@1 - timeoutInMinutes: 2 + - task: Delay@1 inputs: - delayForMinutes: '3' + delayForMinutes: '4318' - job: job2 displayName: job2 dependsOn: delayJob From 7eb49e9166a3ecb49d97dc8fd2c875582942c33a Mon Sep 17 00:00:00 2001 From: Raiyan Date: Thu, 6 Feb 2020 11:32:03 +0530 Subject: [PATCH 19/34] job TO is 0. delay is 4318 --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c28c28d..4566bea 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,11 +14,11 @@ stages: - job: delayJob pool: server displayName: delayJob - timeoutInMinutes: 4320 + timeoutInMinutes: 0 steps: - task: Delay@1 inputs: - delayForMinutes: '4318' + delayForMinutes: '4318' - job: job2 displayName: job2 dependsOn: delayJob From 4a2fb0df010291d44438134bcc4fd291b62c1754 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Thu, 6 Feb 2020 11:34:58 +0530 Subject: [PATCH 20/34] excluding certain paths from trigger --- azure-pipelines-traceability-with-vm.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-traceability-with-vm.yml b/azure-pipelines-traceability-with-vm.yml index 00de81e..a34bc38 100644 --- a/azure-pipelines-traceability-with-vm.yml +++ b/azure-pipelines-traceability-with-vm.yml @@ -4,7 +4,12 @@ # https://aka.ms/yaml trigger: -- master + branches: + include: + - master + paths: + exclude: + - ./azure-pipelines.yml jobs: - deployment: deploy # name of the deployment job (A-Z, a-z, 0-9, and underscore) From 7285d06da31f6dc24750ffc2e4ada8345b3401b7 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Thu, 6 Feb 2020 12:16:28 +0530 Subject: [PATCH 21/34] job timeout behaviour --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4566bea..192abff 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,7 @@ stages: - job: delayJob pool: server displayName: delayJob - timeoutInMinutes: 0 + timeoutInMinutes: 1 steps: - task: Delay@1 inputs: From d503a8ad7cce805d135974f497c8900a53534630 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Thu, 12 Mar 2020 11:22:38 +0530 Subject: [PATCH 22/34] added delay --- azure-pipelines-traceability-with-vm.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines-traceability-with-vm.yml b/azure-pipelines-traceability-with-vm.yml index a34bc38..13c00fa 100644 --- a/azure-pipelines-traceability-with-vm.yml +++ b/azure-pipelines-traceability-with-vm.yml @@ -12,6 +12,12 @@ trigger: - ./azure-pipelines.yml jobs: +- job: delayjob + pool: server + steps: + - task: Delay@1 + inputs: + delayForMinutes: '75' - deployment: deploy # name of the deployment job (A-Z, a-z, 0-9, and underscore) displayName: deployWeb # friendly name to display in the UI variables: From 264180f1950804bb926ac6ad9ddf3a75eb11d17f Mon Sep 17 00:00:00 2001 From: Raiyan Date: Wed, 25 Mar 2020 16:40:34 +0530 Subject: [PATCH 23/34] testing env traceability [skip ci] --- azure-pipelines-evn-test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 azure-pipelines-evn-test.yml diff --git a/azure-pipelines-evn-test.yml b/azure-pipelines-evn-test.yml new file mode 100644 index 0000000..6137bf1 --- /dev/null +++ b/azure-pipelines-evn-test.yml @@ -0,0 +1,32 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + + +stages: +- stage: s1 + jobs: + - job: j1 + steps: + - script: echo hello +- stage: deploy + jobs: + - deployment: DeployWeb + displayName: deploy Web App + pool: + vmImage: 'Ubuntu-latest' + # creates an environment if it doesn't exist + environment: 'test-environment' + strategy: + runOnce: + deploy: + steps: + - script: echo Hello world + From 4810d87141489f061af9892d36ce70a0a116049c Mon Sep 17 00:00:00 2001 From: Raiyan Date: Wed, 25 Mar 2020 16:44:09 +0530 Subject: [PATCH 24/34] added checkout self --- azure-pipelines-evn-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines-evn-test.yml b/azure-pipelines-evn-test.yml index 6137bf1..4adcca8 100644 --- a/azure-pipelines-evn-test.yml +++ b/azure-pipelines-evn-test.yml @@ -28,5 +28,6 @@ stages: runOnce: deploy: steps: + - checkout: self - script: echo Hello world From 03e2071f7a74b2ecfc460b5d4fa9e863ab63cf57 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Sun, 5 Apr 2020 19:39:43 +0530 Subject: [PATCH 25/34] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 4839b66..2a08635 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,2 @@ # Infinity-Shell -adding data -adding data2 -adding data2 +ALL THE BEST FOR THE HACKATHON!! From ed3257f60e5f7c7bb8685b1a46e9305368e29e31 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Sun, 5 Apr 2020 20:08:21 +0530 Subject: [PATCH 26/34] ADDED TEXT ART --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a08635..1c0abd1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # Infinity-Shell -ALL THE BEST FOR THE HACKATHON!! + + +██╗░░░██╗░█████╗░███╗░░░███╗██╗░░░░░  ██████╗░██╗██████╗░███████╗██╗░░░░░██╗███╗░░██╗███████╗░██████╗ +╚██╗░██╔╝██╔══██╗████╗░████║██║░░░░░  ██╔══██╗██║██╔══██╗██╔════╝██║░░░░░██║████╗░██║██╔════╝██╔════╝ +░╚████╔╝░███████║██╔████╔██║██║░░░░░  ██████╔╝██║██████╔╝█████╗░░██║░░░░░██║██╔██╗██║█████╗░░╚█████╗░ +░░╚██╔╝░░██╔══██║██║╚██╔╝██║██║░░░░░  ██╔═══╝░██║██╔═══╝░██╔══╝░░██║░░░░░██║██║╚████║██╔══╝░░░╚═══██╗ +░░░██║░░░██║░░██║██║░╚═╝░██║███████╗  ██║░░░░░██║██║░░░░░███████╗███████╗██║██║░╚███║███████╗██████╔╝ +░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░░░░╚═╝╚══════╝  ╚═╝░░░░░╚═╝╚═╝░░░░░╚══════╝╚══════╝╚═╝╚═╝░░╚══╝╚══════╝╚═════╝░ + +██████╗░░█████╗░░█████╗░██╗░░██╗██╗ +██╔══██╗██╔══██╗██╔══██╗██║░██╔╝██║ +██████╔╝██║░░██║██║░░╚═╝█████═╝░██║ +██╔══██╗██║░░██║██║░░██╗██╔═██╗░╚═╝ +██║░░██║╚█████╔╝╚█████╔╝██║░╚██╗██╗ +╚═╝░░╚═╝░╚════╝░░╚════╝░╚═╝░░╚═╝╚═╝ From e20ccc62026c40905e8ac5257ce3a0dd82fe7c48 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Sun, 5 Apr 2020 20:10:41 +0530 Subject: [PATCH 27/34] Update README.md --- README.md | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 1c0abd1..d644ae0 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,9 @@ # Infinity-Shell -██╗░░░██╗░█████╗░███╗░░░███╗██╗░░░░░  ██████╗░██╗██████╗░███████╗██╗░░░░░██╗███╗░░██╗███████╗░██████╗ -╚██╗░██╔╝██╔══██╗████╗░████║██║░░░░░  ██╔══██╗██║██╔══██╗██╔════╝██║░░░░░██║████╗░██║██╔════╝██╔════╝ -░╚████╔╝░███████║██╔████╔██║██║░░░░░  ██████╔╝██║██████╔╝█████╗░░██║░░░░░██║██╔██╗██║█████╗░░╚█████╗░ -░░╚██╔╝░░██╔══██║██║╚██╔╝██║██║░░░░░  ██╔═══╝░██║██╔═══╝░██╔══╝░░██║░░░░░██║██║╚████║██╔══╝░░░╚═══██╗ -░░░██║░░░██║░░██║██║░╚═╝░██║███████╗  ██║░░░░░██║██║░░░░░███████╗███████╗██║██║░╚███║███████╗██████╔╝ -░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░░░░╚═╝╚══════╝  ╚═╝░░░░░╚═╝╚═╝░░░░░╚══════╝╚══════╝╚═╝╚═╝░░╚══╝╚══════╝╚═════╝░ - -██████╗░░█████╗░░█████╗░██╗░░██╗██╗ -██╔══██╗██╔══██╗██╔══██╗██║░██╔╝██║ -██████╔╝██║░░██║██║░░╚═╝█████═╝░██║ -██╔══██╗██║░░██║██║░░██╗██╔═██╗░╚═╝ -██║░░██║╚█████╔╝╚█████╔╝██║░╚██╗██╗ -╚═╝░░╚═╝░╚════╝░░╚════╝░╚═╝░░╚═╝╚═╝ +██╗░░░██╗░█████╗░███╗░░░███╗██╗░░░░░  ██████╗░░█████╗░░█████╗░██╗░░██╗░██████╗██╗ +╚██╗░██╔╝██╔══██╗████╗░████║██║░░░░░  ██╔══██╗██╔══██╗██╔══██╗██║░██╔╝██╔════╝██║ +░╚████╔╝░███████║██╔████╔██║██║░░░░░  ██████╔╝██║░░██║██║░░╚═╝█████═╝░╚█████╗░██║ +░░╚██╔╝░░██╔══██║██║╚██╔╝██║██║░░░░░  ██╔══██╗██║░░██║██║░░██╗██╔═██╗░░╚═══██╗╚═╝ +░░░██║░░░██║░░██║██║░╚═╝░██║███████╗  ██║░░██║╚█████╔╝╚█████╔╝██║░╚██╗██████╔╝██╗ +░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░░░░╚═╝╚══════╝  ╚═╝░░╚═╝░╚════╝░░╚════╝░╚═╝░░╚═╝╚═════╝░╚═╝ From 18f5dcddc12f15e470ee8dfdcdd1e4c7bcf6aaf3 Mon Sep 17 00:00:00 2001 From: Raiyan Date: Mon, 6 Apr 2020 09:34:27 +0530 Subject: [PATCH 28/34] Create cross-repo-template.yml --- templates/cross-repo-template.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/cross-repo-template.yml diff --git a/templates/cross-repo-template.yml b/templates/cross-repo-template.yml new file mode 100644 index 0000000..730a4ea --- /dev/null +++ b/templates/cross-repo-template.yml @@ -0,0 +1,8 @@ +jobs: +- job: Build + steps: + - script: echo "npm install" + +- job: Test + steps: + - script: echo "npm build" From 105c55174ed65b2d0bf6aca968c524fbea59b85a Mon Sep 17 00:00:00 2001 From: Raiyan Date: Fri, 30 Oct 2020 11:48:46 +0530 Subject: [PATCH 29/34] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 192abff..bc88752 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,11 +11,28 @@ stages: - stage: BuildStage displayName: BuildStage jobs: + - job: mvjob + pool: server + displayName: mvJob + timeoutInMinutes: 100 + steps: + - task: ManualValidation@0 + timeoutInMinutes: 1 + inputs: + notifyUsers: 'moala@microsoft.com' + instructions: 'check the configuration' + onTimeout: 'resume' + - job: delayJob pool: server displayName: delayJob timeoutInMinutes: 1 - steps: + steps: + - task: ManualValidation@0 + inputs: + notifyUsers: 'moala@microsoft.com' + instructions: 'check the configuration' + onTimeout: 'resume' - task: Delay@1 inputs: delayForMinutes: '4318' From cdf8a5fb249df9f73fc5b370b1ba1832e5f151bd Mon Sep 17 00:00:00 2001 From: Raiyan Date: Fri, 30 Oct 2020 11:54:19 +0530 Subject: [PATCH 30/34] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bc88752..dd33bd1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,10 +14,10 @@ stages: - job: mvjob pool: server displayName: mvJob - timeoutInMinutes: 100 + timeoutInMinutes: 1 steps: - task: ManualValidation@0 - timeoutInMinutes: 1 + timeoutInMinutes: 10 inputs: notifyUsers: 'moala@microsoft.com' instructions: 'check the configuration' From a603b46d86929e4102600a132cb6289837d7211e Mon Sep 17 00:00:00 2001 From: Raiyan Date: Fri, 30 Oct 2020 11:57:52 +0530 Subject: [PATCH 31/34] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dd33bd1..6c35929 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,13 +26,13 @@ stages: - job: delayJob pool: server displayName: delayJob - timeoutInMinutes: 1 + timeoutInMinutes: 100 steps: - task: ManualValidation@0 inputs: notifyUsers: 'moala@microsoft.com' instructions: 'check the configuration' - onTimeout: 'resume' + onTimeout: 'reject' - task: Delay@1 inputs: delayForMinutes: '4318' From 035434b62734ab69b2d33db0b9e00788bd49550f Mon Sep 17 00:00:00 2001 From: Star Michael Speicher <100775213+LUCIOUS999@users.noreply.github.com> Date: Fri, 11 Aug 2023 13:14:23 -0400 Subject: [PATCH 32/34] Create jekyll-docker.yml --- .github/workflows/jekyll-docker.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/jekyll-docker.yml diff --git a/.github/workflows/jekyll-docker.yml b/.github/workflows/jekyll-docker.yml new file mode 100644 index 0000000..4943c9c --- /dev/null +++ b/.github/workflows/jekyll-docker.yml @@ -0,0 +1,20 @@ +name: Jekyll site CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the site in the jekyll/builder container + run: | + docker run \ + -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ + jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future" From 69b5667a0ed0db7ecae843ab566967ba2c2d769d Mon Sep 17 00:00:00 2001 From: Star Michael Speicher <100775213+LUCIOUS999@users.noreply.github.com> Date: Fri, 11 Aug 2023 13:15:34 -0400 Subject: [PATCH 33/34] Create terraform.yml --- .github/workflows/terraform.yml | 93 +++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 .github/workflows/terraform.yml diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml new file mode 100644 index 0000000..76a1fbf --- /dev/null +++ b/.github/workflows/terraform.yml @@ -0,0 +1,93 @@ +# This workflow installs the latest version of Terraform CLI and configures the Terraform CLI configuration file +# with an API token for Terraform Cloud (app.terraform.io). On pull request events, this workflow will run +# `terraform init`, `terraform fmt`, and `terraform plan` (speculative plan via Terraform Cloud). On push events +# to the "master" branch, `terraform apply` will be executed. +# +# Documentation for `hashicorp/setup-terraform` is located here: https://github.com/hashicorp/setup-terraform +# +# To use this workflow, you will need to complete the following setup steps. +# +# 1. Create a `main.tf` file in the root of this repository with the `remote` backend and one or more resources defined. +# Example `main.tf`: +# # The configuration for the `remote` backend. +# terraform { +# backend "remote" { +# # The name of your Terraform Cloud organization. +# organization = "example-organization" +# +# # The name of the Terraform Cloud workspace to store Terraform state files in. +# workspaces { +# name = "example-workspace" +# } +# } +# } +# +# # An example resource that does nothing. +# resource "null_resource" "example" { +# triggers = { +# value = "A example resource that does nothing!" +# } +# } +# +# +# 2. Generate a Terraform Cloud user API token and store it as a GitHub secret (e.g. TF_API_TOKEN) on this repository. +# Documentation: +# - https://www.terraform.io/docs/cloud/users-teams-organizations/api-tokens.html +# - https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets +# +# 3. Reference the GitHub secret in step using the `hashicorp/setup-terraform` GitHub Action. +# Example: +# - name: Setup Terraform +# uses: hashicorp/setup-terraform@v1 +# with: +# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} + +name: 'Terraform' + +on: + push: + branches: [ "master" ] + pull_request: + +permissions: + contents: read + +jobs: + terraform: + name: 'Terraform' + runs-on: ubuntu-latest + environment: production + + # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest + defaults: + run: + shell: bash + + steps: + # Checkout the repository to the GitHub Actions runner + - name: Checkout + uses: actions/checkout@v3 + + # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token + - name: Setup Terraform + uses: hashicorp/setup-terraform@v1 + with: + cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} + + # Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc. + - name: Terraform Init + run: terraform init + + # Checks that all Terraform configuration files adhere to a canonical format + - name: Terraform Format + run: terraform fmt -check + + # Generates an execution plan for Terraform + - name: Terraform Plan + run: terraform plan -input=false + + # On push to "master", build or change infrastructure according to Terraform configuration files + # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks + - name: Terraform Apply + if: github.ref == 'refs/heads/"master"' && github.event_name == 'push' + run: terraform apply -auto-approve -input=false From b092a6da63c48b931bca35f1d813f4d08caab28f Mon Sep 17 00:00:00 2001 From: Star Michael Speicher <100775213+LUCIOUS999@users.noreply.github.com> Date: Fri, 11 Aug 2023 13:17:30 -0400 Subject: [PATCH 34/34] Create openshift.yml --- .github/workflows/openshift.yml | 202 ++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 .github/workflows/openshift.yml diff --git a/.github/workflows/openshift.yml b/.github/workflows/openshift.yml new file mode 100644 index 0000000..579bdfb --- /dev/null +++ b/.github/workflows/openshift.yml @@ -0,0 +1,202 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# 💁 The OpenShift Starter workflow will: +# - Checkout your repository +# - Perform a container image build +# - Push the built image to the GitHub Container Registry (GHCR) +# - Log in to your OpenShift cluster +# - Create an OpenShift app from the image and expose it to the internet + +# ℹ️ Configure your repository and the workflow with the following steps: +# 1. Have access to an OpenShift cluster. Refer to https://www.openshift.com/try +# 2. Create the OPENSHIFT_SERVER and OPENSHIFT_TOKEN repository secrets. Refer to: +# - https://github.com/redhat-actions/oc-login#readme +# - https://docs.github.com/en/actions/reference/encrypted-secrets +# - https://cli.github.com/manual/gh_secret_set +# 3. (Optional) Edit the top-level 'env' section as marked with '🖊️' if the defaults are not suitable for your project. +# 4. (Optional) Edit the build-image step to build your project. +# The default build type is by using a Dockerfile at the root of the repository, +# but can be replaced with a different file, a source-to-image build, or a step-by-step buildah build. +# 5. Commit and push the workflow file to your default branch to trigger a workflow run. + +# 👋 Visit our GitHub organization at https://github.com/redhat-actions/ to see our actions and provide feedback. + +name: OpenShift + +env: + # 🖊️ EDIT your repository secrets to log into your OpenShift cluster and set up the context. + # See https://github.com/redhat-actions/oc-login#readme for how to retrieve these values. + # To get a permanent token, refer to https://github.com/redhat-actions/oc-login/wiki/Using-a-Service-Account-for-GitHub-Actions + OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }} + OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }} + # 🖊️ EDIT to set the kube context's namespace after login. Leave blank to use your user's default namespace. + OPENSHIFT_NAMESPACE: "" + + # 🖊️ EDIT to set a name for your OpenShift app, or a default one will be generated below. + APP_NAME: "" + + # 🖊️ EDIT with the port your application should be accessible on. + # If the container image exposes *exactly one* port, this can be left blank. + # Refer to the 'port' input of https://github.com/redhat-actions/oc-new-app + APP_PORT: "" + + # 🖊️ EDIT to change the image registry settings. + # Registries such as GHCR, Quay.io, and Docker Hub are supported. + IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} + IMAGE_REGISTRY_USER: ${{ github.actor }} + IMAGE_REGISTRY_PASSWORD: ${{ github.token }} + + # 🖊️ EDIT to specify custom tags for the container image, or default tags will be generated below. + IMAGE_TAGS: "" + +on: + # https://docs.github.com/en/actions/reference/events-that-trigger-workflows + workflow_dispatch: + push: + # Edit to the branch(es) you want to build and deploy on each push. + branches: [ "master" ] + +jobs: + # 🖊️ EDIT if you want to run vulnerability check on your project before deploying + # the application. Please uncomment the below CRDA scan job and configure to run it in + # your workflow. For details about CRDA action visit https://github.com/redhat-actions/crda/blob/main/README.md + # + # TODO: Make sure to add 'CRDA Scan' starter workflow from the 'Actions' tab. + # For guide on adding new starter workflow visit https://docs.github.com/en/github-ae@latest/actions/using-workflows/using-starter-workflows + + crda-scan: + uses: ./.github/workflows/crda.yml + secrets: + CRDA_KEY: ${{ secrets.CRDA_KEY }} + # SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} # Either use SNYK_TOKEN or CRDA_KEY + + openshift-ci-cd: + # 🖊️ Uncomment this if you are using CRDA scan step above + # needs: crda-scan + name: Build and deploy to OpenShift + runs-on: ubuntu-20.04 + environment: production + + outputs: + ROUTE: ${{ steps.deploy-and-expose.outputs.route }} + SELECTOR: ${{ steps.deploy-and-expose.outputs.selector }} + + steps: + - name: Check for required secrets + uses: actions/github-script@v6 + with: + script: | + const secrets = { + OPENSHIFT_SERVER: `${{ secrets.OPENSHIFT_SERVER }}`, + OPENSHIFT_TOKEN: `${{ secrets.OPENSHIFT_TOKEN }}`, + }; + + const GHCR = "ghcr.io"; + if (`${{ env.IMAGE_REGISTRY }}`.startsWith(GHCR)) { + core.info(`Image registry is ${GHCR} - no registry password required`); + } + else { + core.info("A registry password is required"); + secrets["IMAGE_REGISTRY_PASSWORD"] = `${{ secrets.IMAGE_REGISTRY_PASSWORD }}`; + } + + const missingSecrets = Object.entries(secrets).filter(([ name, value ]) => { + if (value.length === 0) { + core.error(`Secret "${name}" is not set`); + return true; + } + core.info(`✔️ Secret "${name}" is set`); + return false; + }); + + if (missingSecrets.length > 0) { + core.setFailed(`❌ At least one required secret is not set in the repository. \n` + + "You can add it using:\n" + + "GitHub UI: https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository \n" + + "GitHub CLI: https://cli.github.com/manual/gh_secret_set \n" + + "Also, refer to https://github.com/redhat-actions/oc-login#getting-started-with-the-action-or-see-example"); + } + else { + core.info(`✅ All the required secrets are set`); + } + + - name: Check out repository + uses: actions/checkout@v3 + + - name: Determine app name + if: env.APP_NAME == '' + run: | + echo "APP_NAME=$(basename $PWD)" | tee -a $GITHUB_ENV + + - name: Determine image tags + if: env.IMAGE_TAGS == '' + run: | + echo "IMAGE_TAGS=latest ${GITHUB_SHA::12}" | tee -a $GITHUB_ENV + + # https://github.com/redhat-actions/buildah-build#readme + - name: Build from Dockerfile + id: build-image + uses: redhat-actions/buildah-build@v2 + with: + image: ${{ env.APP_NAME }} + tags: ${{ env.IMAGE_TAGS }} + + # If you don't have a Dockerfile/Containerfile, refer to https://github.com/redhat-actions/buildah-build#scratch-build-inputs + # Or, perform a source-to-image build using https://github.com/redhat-actions/s2i-build + # Otherwise, point this to your Dockerfile/Containerfile relative to the repository root. + dockerfiles: | + ./Dockerfile + + # https://github.com/redhat-actions/push-to-registry#readme + - name: Push to registry + id: push-image + uses: redhat-actions/push-to-registry@v2 + with: + image: ${{ steps.build-image.outputs.image }} + tags: ${{ steps.build-image.outputs.tags }} + registry: ${{ env.IMAGE_REGISTRY }} + username: ${{ env.IMAGE_REGISTRY_USER }} + password: ${{ env.IMAGE_REGISTRY_PASSWORD }} + + # The path the image was pushed to is now stored in ${{ steps.push-image.outputs.registry-path }} + + - name: Install oc + uses: redhat-actions/openshift-tools-installer@v1 + with: + oc: 4 + + # https://github.com/redhat-actions/oc-login#readme + - name: Log in to OpenShift + uses: redhat-actions/oc-login@v1 + with: + openshift_server_url: ${{ env.OPENSHIFT_SERVER }} + openshift_token: ${{ env.OPENSHIFT_TOKEN }} + insecure_skip_tls_verify: true + namespace: ${{ env.OPENSHIFT_NAMESPACE }} + + # This step should create a deployment, service, and route to run your app and expose it to the internet. + # https://github.com/redhat-actions/oc-new-app#readme + - name: Create and expose app + id: deploy-and-expose + uses: redhat-actions/oc-new-app@v1 + with: + app_name: ${{ env.APP_NAME }} + image: ${{ steps.push-image.outputs.registry-path }} + namespace: ${{ env.OPENSHIFT_NAMESPACE }} + port: ${{ env.APP_PORT }} + + - name: Print application URL + env: + ROUTE: ${{ steps.deploy-and-expose.outputs.route }} + SELECTOR: ${{ steps.deploy-and-expose.outputs.selector }} + run: | + [[ -n ${{ env.ROUTE }} ]] || (echo "Determining application route failed in previous step"; exit 1) + echo + echo "======================== Your application is available at: ========================" + echo ${{ env.ROUTE }} + echo "===================================================================================" + echo + echo "Your app can be taken down with: \"oc delete all --selector='${{ env.SELECTOR }}'\""