From 03ce21b34d95f6387fef0709e28d369add8ad6c4 Mon Sep 17 00:00:00 2001 From: Iam-p Date: Mon, 26 Aug 2024 22:31:53 +0530 Subject: [PATCH 1/8] Create pipeline.yml --- youtube/pipeline.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 youtube/pipeline.yml diff --git a/youtube/pipeline.yml b/youtube/pipeline.yml new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/youtube/pipeline.yml @@ -0,0 +1 @@ + From f192a195678b4e84c6a5cb69a4618d6bf9425417 Mon Sep 17 00:00:00 2001 From: Iam-p Date: Mon, 26 Aug 2024 22:32:57 +0530 Subject: [PATCH 2/8] Update pipeline.yml --- youtube/pipeline.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/youtube/pipeline.yml b/youtube/pipeline.yml index 8b1378917..a2526ceba 100644 --- a/youtube/pipeline.yml +++ b/youtube/pipeline.yml @@ -1 +1,52 @@ +# 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: + paths: + include: + - src/* + +stages: +- stage: Build + jobs: + - job: Build + pool: + vmImage: 'ubuntu-latest' + steps: + - task: Npm@1 + inputs: + command: 'install' + - task: Npm@1 + inputs: + command: 'custom' + customCommand: 'run build' + + + - task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: 'build' + ArtifactName: 'drop' + publishLocation: 'Container' + +- stage: Deploy + jobs: + - job: Deploy + pool: + vmImage: 'ubuntu-latest' + steps: + - task: DownloadBuildArtifacts@1 + inputs: + buildType: 'current' + downloadType: 'single' + artifactName: 'drop' + downloadPath: '$(System.ArtifactsDirectory)' + - task: AzureRmWebAppDeployment@4 + inputs: + ConnectionType: 'AzureRM' + azureSubscription: 'Free Trial(subscription-ID)' + appType: 'webAppLinux' + WebAppName: 'youtube1' + packageForLinux: '$(System.ArtifactsDirectory)/drop' + RuntimeStack: 'STATICSITE|1.0' From bc086bdd9923ac6586d6b3a659247780e5846227 Mon Sep 17 00:00:00 2001 From: Iam-p Date: Mon, 26 Aug 2024 22:36:24 +0530 Subject: [PATCH 3/8] Update pipeline.yml --- youtube/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube/pipeline.yml b/youtube/pipeline.yml index a2526ceba..95952eca7 100644 --- a/youtube/pipeline.yml +++ b/youtube/pipeline.yml @@ -6,7 +6,7 @@ trigger: paths: include: - - src/* + - src/components/* stages: - stage: Build From 5e351ae95bb6ee1b309ffbd06a30410bab5385de Mon Sep 17 00:00:00 2001 From: Iam-p Date: Mon, 26 Aug 2024 22:37:06 +0530 Subject: [PATCH 4/8] Create README.md --- youtube/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 youtube/README.md diff --git a/youtube/README.md b/youtube/README.md new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/youtube/README.md @@ -0,0 +1 @@ + From 2109e6d07f1c1fad14248d026473d7c9abaeaea4 Mon Sep 17 00:00:00 2001 From: Iam-p Date: Mon, 26 Aug 2024 22:39:58 +0530 Subject: [PATCH 5/8] Update README.md --- youtube/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/youtube/README.md b/youtube/README.md index 8b1378917..36d12cfff 100644 --- a/youtube/README.md +++ b/youtube/README.md @@ -1 +1,10 @@ - +Build and Deploy a YouTube Clone using Azure pipelines +A trigger tells a Pipeline to run. It could be CI or Scheduled, manual(if not specified), or after another build finishes. +A pipeline is made up of one or more stages. A pipeline can deploy to one or more environments. +A stage organizes jobs in a pipeline, and each stage can have one or more jobs. +Each job runs on one agent, such as Ubuntu, Windows, macOS, etc. A job can also be agentless. +Each agent runs a job that contains one or more steps. +A step can be a task or script and is the smallest building block of a pipeline. +A task is a pre-packaged script that performs an action, such as invoking a REST API or publishing a build artifact. +An artifact is a collection of files or packages published by a run. +![image](https://github.com/user-attachments/assets/118c8bd7-eed0-4a9f-9119-b3cedda4d1b2) From 2cd528983c5c3f32043070d0f337a9f975968f5b Mon Sep 17 00:00:00 2001 From: Iam-p Date: Mon, 26 Aug 2024 22:40:25 +0530 Subject: [PATCH 6/8] Update README.md --- youtube/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/youtube/README.md b/youtube/README.md index 36d12cfff..c2ac1b065 100644 --- a/youtube/README.md +++ b/youtube/README.md @@ -1,10 +1,19 @@ Build and Deploy a YouTube Clone using Azure pipelines + A trigger tells a Pipeline to run. It could be CI or Scheduled, manual(if not specified), or after another build finishes. + A pipeline is made up of one or more stages. A pipeline can deploy to one or more environments. + A stage organizes jobs in a pipeline, and each stage can have one or more jobs. + Each job runs on one agent, such as Ubuntu, Windows, macOS, etc. A job can also be agentless. + Each agent runs a job that contains one or more steps. + A step can be a task or script and is the smallest building block of a pipeline. + A task is a pre-packaged script that performs an action, such as invoking a REST API or publishing a build artifact. + An artifact is a collection of files or packages published by a run. + ![image](https://github.com/user-attachments/assets/118c8bd7-eed0-4a9f-9119-b3cedda4d1b2) From ef055ab60bdfd73e3043adaa76d85f1f33b40928 Mon Sep 17 00:00:00 2001 From: Iam-p Date: Mon, 26 Aug 2024 22:42:23 +0530 Subject: [PATCH 7/8] Update README.md --- youtube/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube/README.md b/youtube/README.md index c2ac1b065..7b1cf5aee 100644 --- a/youtube/README.md +++ b/youtube/README.md @@ -1,3 +1,6 @@ +Build and Deploy a YouTube Clone using Azure DevOps pipelines + + Build and Deploy a YouTube Clone using Azure pipelines A trigger tells a Pipeline to run. It could be CI or Scheduled, manual(if not specified), or after another build finishes. From 9790bc8150bc8fef3c3ec7c4db6312c18d0b00c2 Mon Sep 17 00:00:00 2001 From: Iam-p Date: Wed, 23 Oct 2024 18:28:21 +0530 Subject: [PATCH 8/8] Update ChannelCard.jsx --- src/components/ChannelCard.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ChannelCard.jsx b/src/components/ChannelCard.jsx index 108801d7b..354b7f59c 100644 --- a/src/components/ChannelCard.jsx +++ b/src/components/ChannelCard.jsx @@ -8,7 +8,7 @@ const ChannelCard = ({ channelDetail, marginTop }) => (