From f0f6e750185035c44edd8e5fdaaa150814166d58 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Fri, 21 Aug 2020 12:45:16 -0300 Subject: [PATCH 01/66] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..7d405f9ee --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,36 @@ +# Python package +# Create and test a Python package on multiple Python versions. +# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/python + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' +strategy: + matrix: + Python27: + python.version: '2.7' + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' + +steps: +- task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + displayName: 'Use Python $(python.version)' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'pytest' From 427b0ff53d7f8714a05b884f2180f15fce94319e Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Fri, 21 Aug 2020 12:58:07 -0300 Subject: [PATCH 02/66] removing 3.7 version --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7d405f9ee..14a5d586c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,8 +16,8 @@ strategy: python.version: '3.5' Python36: python.version: '3.6' - Python37: - python.version: '3.7' + #Python37: + # python.version: '3.7' steps: - task: UsePythonVersion@0 From be46f7fd94ee748a604e20425728de1707d31471 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 21 Mar 2021 01:34:18 -0300 Subject: [PATCH 03/66] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 14a5d586c..133d595ec 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,8 +1,15 @@ + +name: Teste do Senhor Rodrigo # Python package # Create and test a Python package on multiple Python versions. # Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/python +variables: +- name: comida + value: arroz + + trigger: - master @@ -20,6 +27,7 @@ strategy: # python.version: '3.7' steps: +- script: echo "comida boa eh' $(arroz) - task: UsePythonVersion@0 inputs: versionSpec: '$(python.version)' From b4192c7c4350a9d7c7093454cc09e9ac46f2be7f Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 21 Mar 2021 01:41:27 -0300 Subject: [PATCH 04/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 133d595ec..a5cf94345 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,10 +17,10 @@ pool: vmImage: 'ubuntu-latest' strategy: matrix: - Python27: - python.version: '2.7' - Python35: - python.version: '3.5' + #Python27: + # python.version: '2.7' + #Python35: + # python.version: '3.5' Python36: python.version: '3.6' #Python37: From b222fe3cc9d019a2397dc6a7b358ab7a95adac4f Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 21 Mar 2021 01:49:20 -0300 Subject: [PATCH 05/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a5cf94345..82e03dd7d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,17 +17,17 @@ pool: vmImage: 'ubuntu-latest' strategy: matrix: - #Python27: - # python.version: '2.7' - #Python35: - # python.version: '3.5' + Python27: + python.version: '2.7' + Python35: + python.version: '3.5' Python36: python.version: '3.6' #Python37: # python.version: '3.7' steps: -- script: echo "comida boa eh' $(arroz) +- script: echo "comida boa:' $(arroz) - task: UsePythonVersion@0 inputs: versionSpec: '$(python.version)' From 240a0910841e4c4c961c268d057348b6ff1ab907 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 21 Mar 2021 01:50:59 -0300 Subject: [PATCH 06/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 82e03dd7d..4caf55bfe 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,9 +5,10 @@ name: Teste do Senhor Rodrigo # Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/python -variables: -- name: comida - value: arroz +variables: # pipeline-level + comida: 'arroz e feijao' + drink: 'cafe' + trigger: From a54629d9467a7a2a91b9d227b2c2c4c008b22e49 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 21 Mar 2021 01:56:02 -0300 Subject: [PATCH 07/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4caf55bfe..f2e1d0276 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,7 +6,7 @@ name: Teste do Senhor Rodrigo # https://docs.microsoft.com/azure/devops/pipelines/languages/python variables: # pipeline-level - comida: 'arroz e feijao' + comida: 'arroz' drink: 'cafe' @@ -24,11 +24,11 @@ strategy: python.version: '3.5' Python36: python.version: '3.6' - #Python37: - # python.version: '3.7' + Python37: + python.version: '3.7' steps: -- script: echo "comida boa:' $(arroz) +- script: echo 'comida boa:' $(comida) - task: UsePythonVersion@0 inputs: versionSpec: '$(python.version)' From 1446fc573939aa143751cba10aa655f50e795d29 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 21 Mar 2021 04:49:04 -0300 Subject: [PATCH 08/66] 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 f2e1d0276..a89384537 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,8 +24,8 @@ strategy: python.version: '3.5' Python36: python.version: '3.6' - Python37: - python.version: '3.7' + #Python37: + #python.version: '3.7' steps: - script: echo 'comida boa:' $(comida) From 6c26129b009fa482de3080a35cedec2b48f457ea Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Mon, 22 Mar 2021 16:23:39 -0300 Subject: [PATCH 09/66] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a89384537..3988835e0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,5 +1,5 @@ -name: Teste do Senhor Rodrigo +name: test pipeline # Python package # Create and test a Python package on multiple Python versions. # Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: @@ -10,7 +10,6 @@ variables: # pipeline-level drink: 'cafe' - trigger: - master @@ -28,7 +27,7 @@ strategy: #python.version: '3.7' steps: -- script: echo 'comida boa:' $(comida) +- script: echo 'comida boa e bebida boa :' $(comida) e $(drink) - task: UsePythonVersion@0 inputs: versionSpec: '$(python.version)' From d8c8875bfd6bc4639208aa02e9115ed88ec81da1 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 23 Mar 2021 17:04:23 -0300 Subject: [PATCH 10/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3988835e0..6902caaea 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,6 +28,12 @@ strategy: steps: - script: echo 'comida boa e bebida boa :' $(comida) e $(drink) +- task: PythonScript@0 + inputs: + scriptSource: 'inline' + script: | + print('Hello world 1') + print('Hello world 2') - task: UsePythonVersion@0 inputs: versionSpec: '$(python.version)' From 0690cd5867f10f1f001b16f3ce52ffcd7091e67c Mon Sep 17 00:00:00 2001 From: Rodrigo Souza Date: Mon, 1 Jan 2024 07:06:51 +0100 Subject: [PATCH 11/66] update simple echo --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6902caaea..3f3a682d1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,7 +6,7 @@ name: test pipeline # https://docs.microsoft.com/azure/devops/pipelines/languages/python variables: # pipeline-level - comida: 'arroz' + food: 'bread' drink: 'cafe' @@ -27,7 +27,7 @@ strategy: #python.version: '3.7' steps: -- script: echo 'comida boa e bebida boa :' $(comida) e $(drink) +- script: echo 'Good food and Good drink :' $(food) e $(drink) - task: PythonScript@0 inputs: scriptSource: 'inline' From 8024498392a4f53586e50174a03d95a0e6fca47a Mon Sep 17 00:00:00 2001 From: Rodrigo Souza Date: Mon, 1 Jan 2024 07:19:02 +0100 Subject: [PATCH 12/66] bump pipeline version --- azure-pipelines.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3f3a682d1..ba9496c60 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,15 +17,12 @@ pool: vmImage: 'ubuntu-latest' strategy: matrix: - Python27: - python.version: '2.7' - Python35: - python.version: '3.5' - Python36: - python.version: '3.6' - #Python37: - #python.version: '3.7' - + Python38: + python.version: '3.8' + Python39: + python.version: '3.9' + Python310: + python.version: '3.10' steps: - script: echo 'Good food and Good drink :' $(food) e $(drink) - task: PythonScript@0 From de8c9f960aab1e5ca109aa223370041a621d883a Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 10:39:38 +0100 Subject: [PATCH 13/66] Update azure-pipelines.yml for Azure Pipelines check --- azure-pipelines.yml | 59 +++++++++++++++------------------------------ 1 file changed, 20 insertions(+), 39 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ba9496c60..68d179c11 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,47 +1,28 @@ -name: test pipeline -# Python package -# Create and test a Python package on multiple Python versions. -# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/python - -variables: # pipeline-level - food: 'bread' - drink: 'cafe' - +name: Build pipeline +# Build Pipeline +# Docker Build the app code using Azure Devops Resoures trigger: -- master +- main pool: vmImage: 'ubuntu-latest' -strategy: - matrix: - Python38: - python.version: '3.8' - Python39: - python.version: '3.9' - Python310: - python.version: '3.10' -steps: -- script: echo 'Good food and Good drink :' $(food) e $(drink) -- task: PythonScript@0 - inputs: - scriptSource: 'inline' - script: | - print('Hello world 1') - print('Hello world 2') -- task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - displayName: 'Use Python $(python.version)' -- script: | - python -m pip install --upgrade pip - pip install -r requirements.txt - displayName: 'Install dependencies' +variables: + - group: 'my-variable-group' + -- script: | - pip install pytest pytest-azurepipelines - pytest - displayName: 'pytest' +steps: +- task: Docker@2 + displayName: Build and push Docker image + inputs: + command: buildAndPush + repository: 20.75.136.5/nqcc/pythonimage + dockerfile: $(Build.SourcesDirectory)/Dockerfile + containerRegistry: 20.75.136.5:5000 + tags: | + $(Build.BuildId) + latest + env: + DOCKER_CLI_EXPERIMENTAL: enabled From 216edadce7e80b8ec8e7d66aab15a0242c089549 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 10:40:20 +0100 Subject: [PATCH 14/66] Update azure-pipelines.yml for Azure Pipelines save --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 68d179c11..54cdff575 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,8 +9,8 @@ trigger: pool: vmImage: 'ubuntu-latest' -variables: - - group: 'my-variable-group' +# variables: +# - group: 'my-variable-group' steps: From 20962a2015eac550af27057e06005f487f12d317 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 18:24:30 +0100 Subject: [PATCH 15/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 54cdff575..fe8b84708 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,7 +20,7 @@ steps: command: buildAndPush repository: 20.75.136.5/nqcc/pythonimage dockerfile: $(Build.SourcesDirectory)/Dockerfile - containerRegistry: 20.75.136.5:5000 + containerRegistry: http://20.75.136.5:80 tags: | $(Build.BuildId) latest From a04ad64217225befc7c5c2ba28002a71bc9b3b90 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 18:52:21 +0100 Subject: [PATCH 16/66] 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 fe8b84708..707868f5f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,8 +9,8 @@ trigger: pool: vmImage: 'ubuntu-latest' -# variables: -# - group: 'my-variable-group' +variables: + - group: 'my-variable-group' steps: From ff205a9bb56b00f2c7621571f645314568a95513 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 19:44:53 +0100 Subject: [PATCH 17/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 707868f5f..be1d91352 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,7 +10,7 @@ pool: vmImage: 'ubuntu-latest' variables: - - group: 'my-variable-group' + - group: 'nqcc-vars' steps: From 2dd06e384b7ae14fd15c7adc8cd45326ccdd692a Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 19:48:33 +0100 Subject: [PATCH 18/66] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 azure-pipelines-1.yml diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 000000000..f58a4e5dc --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,29 @@ +# Docker +# Build a Docker image +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker + +trigger: +- master + +resources: +- repo: self + +variables: + tag: '$(Build.BuildId)' + +stages: +- stage: Build + displayName: Build image + jobs: + - job: Build + displayName: Build + pool: + vmImage: ubuntu-latest + steps: + - task: Docker@2 + displayName: Build an image + inputs: + command: build + dockerfile: '$(Build.SourcesDirectory)/Dockerfile' + tags: | + $(tag) From c7364dd478b047ab1dca1bcf06000a464e012b90 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 19:51:18 +0100 Subject: [PATCH 19/66] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index f58a4e5dc..dadc19e2a 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -27,3 +27,9 @@ stages: dockerfile: '$(Build.SourcesDirectory)/Dockerfile' tags: | $(tag) + + - task: Docker@2 + inputs: + containerRegistry: 'connection to DevHarbor Container Registry' + repository: 'nqcc' + command: 'push' From 913f151d1542462222307649b7a0ec0c5d4a77de Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 19:53:48 +0100 Subject: [PATCH 20/66] Update azure-pipelines-1.yml for Azure Pipelines checking build-push --- azure-pipelines-1.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index dadc19e2a..7d1a646b1 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -28,8 +28,9 @@ stages: tags: | $(tag) - - task: Docker@2 - inputs: - containerRegistry: 'connection to DevHarbor Container Registry' - repository: 'nqcc' - command: 'push' + - task: Docker@2 + displayName: Push the Built Image + inputs: + containerRegistry: 'connection to DevHarbor Container Registry' + repository: 'nqcc' + command: 'push' From c7a78f5150652fb29ada2e72428518ba1f0ecfb0 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 19:58:59 +0100 Subject: [PATCH 21/66] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 7d1a646b1..f3f47b5a5 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -34,3 +34,5 @@ stages: containerRegistry: 'connection to DevHarbor Container Registry' repository: 'nqcc' command: 'push' + tags: | + $(tag) From 77dfe86649623e767df8a874599d8b42c8219fb1 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 20:16:46 +0100 Subject: [PATCH 22/66] Update azure-pipelines-1.yml for Azure Pipelines bump pipeline Build and push --- azure-pipelines-1.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index f3f47b5a5..0f3ce0e2b 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -8,9 +8,12 @@ trigger: resources: - repo: self + + variables: tag: '$(Build.BuildId)' + stages: - stage: Build displayName: Build image @@ -20,19 +23,24 @@ stages: pool: vmImage: ubuntu-latest steps: + + + + - task: Docker@2 displayName: Build an image inputs: command: build dockerfile: '$(Build.SourcesDirectory)/Dockerfile' tags: | - $(tag) + $(Build.BuildNumber) + - task: Docker@2 displayName: Push the Built Image inputs: containerRegistry: 'connection to DevHarbor Container Registry' - repository: 'nqcc' + repository: '$(Build.Repository.Name)/$(Build.Repository.Name)' command: 'push' tags: | - $(tag) + $(Build.BuildNumber)) From 627d095a3599ea62fbd3d85103e4599b8447b5c7 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 20:54:57 +0100 Subject: [PATCH 23/66] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 0f3ce0e2b..f461d5325 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -24,16 +24,15 @@ stages: vmImage: ubuntu-latest steps: - - - - task: Docker@2 displayName: Build an image inputs: command: build dockerfile: '$(Build.SourcesDirectory)/Dockerfile' tags: | - $(Build.BuildNumber) + '$(Build.SourcesDirectory):$tag' + + - task: Docker@2 From e6816331c262f75ed27f20833a814a4c3d0e0083 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 21:36:49 +0100 Subject: [PATCH 24/66] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index be1d91352..0feef42e7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,20 +9,9 @@ trigger: pool: vmImage: 'ubuntu-latest' -variables: - - group: 'nqcc-vars' - - -steps: - task: Docker@2 - displayName: Build and push Docker image inputs: - command: buildAndPush - repository: 20.75.136.5/nqcc/pythonimage - dockerfile: $(Build.SourcesDirectory)/Dockerfile - containerRegistry: http://20.75.136.5:80 - tags: | - $(Build.BuildId) - latest - env: - DOCKER_CLI_EXPERIMENTAL: enabled + containerRegistry: 'connection to DevHarbor Container Registry' + repository: 'nqcc' + command: 'buildAndPush' + Dockerfile: '**/Dockerfile' \ No newline at end of file From 38f63f6f2a67f67397e592c92cdabe6d8ed8b23d Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Tue, 2 Jan 2024 21:39:36 +0100 Subject: [PATCH 25/66] Update azure-pipelines.yml for Azure Pipelines test --- azure-pipelines.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0feef42e7..6941b467b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,7 +1,4 @@ - name: Build pipeline -# Build Pipeline -# Docker Build the app code using Azure Devops Resoures trigger: - main @@ -9,9 +6,16 @@ trigger: pool: vmImage: 'ubuntu-latest' -- task: Docker@2 - inputs: - containerRegistry: 'connection to DevHarbor Container Registry' - repository: 'nqcc' - command: 'buildAndPush' - Dockerfile: '**/Dockerfile' \ No newline at end of file +stages: +- stage: Build + displayName: Build image + jobs: + - job: Build + displayName: Build + steps: + - task: Docker@2 + inputs: + containerRegistry: 'connection to DevHarbor Container Registry' + repository: 'nqcc' + command: 'buildAndPush' + Dockerfile: '**/Dockerfile' From 4b6a872b2798528ecdba0463485cac06a2492daf Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 13:53:08 +0100 Subject: [PATCH 26/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 41 ++++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6941b467b..bf2f79146 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,16 +6,31 @@ trigger: pool: vmImage: 'ubuntu-latest' -stages: -- stage: Build - displayName: Build image - jobs: - - job: Build - displayName: Build - steps: - - task: Docker@2 - inputs: - containerRegistry: 'connection to DevHarbor Container Registry' - repository: 'nqcc' - command: 'buildAndPush' - Dockerfile: '**/Dockerfile' +variables: + registry_password: $(registry_password) + +# stages: +# - stage: Build +# displayName: Build image +# jobs: +# - job: Build +# displayName: Build +# steps: +# - task: Docker@2 +# inputs: +# containerRegistry: 'connection to DevHarbor Container Registry' +# repository: 'nqcc' +# command: 'buildAndPush' +# Dockerfile: '**/Dockerfile' + +steps: +- task: AzureCLI@2 + inputs: + azureSubscription: 'azure-dev-subscription' + scriptType: 'bash' + scriptLocation: 'inlineScript' + inlineScript: 'docker login 40.76.167.146:80 -u admin -p $(registry_password) + + + + \ No newline at end of file From 1eeeb732ce4b47286cf0d1891c52eeaa6166c03c Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 13:57:16 +0100 Subject: [PATCH 27/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bf2f79146..61e69b374 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,7 +29,7 @@ steps: azureSubscription: 'azure-dev-subscription' scriptType: 'bash' scriptLocation: 'inlineScript' - inlineScript: 'docker login 40.76.167.146:80 -u admin -p $(registry_password) + inlineScript: 'docker login 40.76.167.146:80 -u admin -p Harbor12345 From aab78fb9c7ea65c517d130b5e213eae0fc5972bf Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 13:57:25 +0100 Subject: [PATCH 28/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 61e69b374..b0582e408 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,7 +29,7 @@ steps: azureSubscription: 'azure-dev-subscription' scriptType: 'bash' scriptLocation: 'inlineScript' - inlineScript: 'docker login 40.76.167.146:80 -u admin -p Harbor12345 + inlineScript: 'docker login 40.76.167.146:80 -u admin -p Harbor12345' From a2572b07ff6c89c62c9b2be6b9219954652f0843 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 13:58:50 +0100 Subject: [PATCH 29/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b0582e408..e66622b0a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,22 +6,6 @@ trigger: pool: vmImage: 'ubuntu-latest' -variables: - registry_password: $(registry_password) - -# stages: -# - stage: Build -# displayName: Build image -# jobs: -# - job: Build -# displayName: Build -# steps: -# - task: Docker@2 -# inputs: -# containerRegistry: 'connection to DevHarbor Container Registry' -# repository: 'nqcc' -# command: 'buildAndPush' -# Dockerfile: '**/Dockerfile' steps: - task: AzureCLI@2 From be4cf8f003233304c6b77a605a0ce58c178af14b Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 15:33:49 +0100 Subject: [PATCH 30/66] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e66622b0a..2c16875f0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,7 +13,7 @@ steps: azureSubscription: 'azure-dev-subscription' scriptType: 'bash' scriptLocation: 'inlineScript' - inlineScript: 'docker login 40.76.167.146:80 -u admin -p Harbor12345' + inlineScript: 'docker login 40.76.167.146:80 -u admin -p $(harbor-passwd)' From c64f65043432f04c394724836567b4dc0206419b Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 15:45:34 +0100 Subject: [PATCH 31/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2c16875f0..fa5b04e75 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,12 +8,15 @@ pool: steps: -- task: AzureCLI@2 +- task: Bash@3 inputs: - azureSubscription: 'azure-dev-subscription' - scriptType: 'bash' - scriptLocation: 'inlineScript' - inlineScript: 'docker login 40.76.167.146:80 -u admin -p $(harbor-passwd)' + targetType: 'inline' + script: | + # Write your commands here + + echo 'Hello world' + docker login 40.76.167.146:80 -u admin -p Harbor12345 + From 1ae7f4bbf55a1b8e1374415d7497e4e20c4feec5 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 15:47:20 +0100 Subject: [PATCH 32/66] 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 fa5b04e75..8babfc265 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,8 +14,8 @@ steps: script: | # Write your commands here - echo 'Hello world' - docker login 40.76.167.146:80 -u admin -p Harbor12345 + ls /etc/docker + docker login http://40.76.167.146:80 -u admin -p Harbor12345 From 4031b7279df275eb8b9cc119d4c290a6cc6d9105 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 16:05:28 +0100 Subject: [PATCH 33/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8babfc265..2d91962d0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,11 +13,15 @@ steps: targetType: 'inline' script: | # Write your commands here - - ls /etc/docker + cat /etc/docker/daemon.json + echo "restart docker..." + sudo systemctl daemon-reload + sudo systemctl restart docker docker login http://40.76.167.146:80 -u admin -p Harbor12345 + + \ No newline at end of file From b2a7be1fbcbd2db49a242fb7c9a444802eb21043 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 16:14:03 +0100 Subject: [PATCH 34/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2d91962d0..7fbdc6891 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,9 @@ steps: script: | # Write your commands here cat /etc/docker/daemon.json + echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "insecure-registries": ["0.0.0.0/0"] }' | tee /etc/docker/daemon.json echo "restart docker..." + cat /etc/docker/daemon.json sudo systemctl daemon-reload sudo systemctl restart docker docker login http://40.76.167.146:80 -u admin -p Harbor12345 From 915824904d138eb146d0cba1c8daf37565720395 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 16:15:57 +0100 Subject: [PATCH 35/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7fbdc6891..a92a6d69d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,7 +19,7 @@ steps: cat /etc/docker/daemon.json sudo systemctl daemon-reload sudo systemctl restart docker - docker login http://40.76.167.146:80 -u admin -p Harbor12345 + docker login 40.76.167.146:80 -u admin -p Harbor12345 From 006f7b3ef743144b273e88ad8c64796e41da4ee2 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 16:18:14 +0100 Subject: [PATCH 36/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a92a6d69d..7d854512d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,7 @@ steps: script: | # Write your commands here cat /etc/docker/daemon.json - echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "insecure-registries": ["0.0.0.0/0"] }' | tee /etc/docker/daemon.json + echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "insecure-registries": ["0.0.0.0/0"] }' | sudo tee /etc/docker/daemon.json echo "restart docker..." cat /etc/docker/daemon.json sudo systemctl daemon-reload From 3d62ed9122b4bb563427941e23b3f46c1060ab7b Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 16:50:20 +0100 Subject: [PATCH 37/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7d854512d..4ad4b0caf 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,6 +7,13 @@ pool: vmImage: 'ubuntu-latest' +variables: + HELM_EXPERIMENTAL_OCI: 1 + registryName: '40.76.167.146' + imageName: 'flask-python' + BuildId: '$(Build.BuildId)' + tag: '$(Build.BuildId)' + steps: - task: Bash@3 inputs: @@ -19,9 +26,17 @@ steps: cat /etc/docker/daemon.json sudo systemctl daemon-reload sudo systemctl restart docker - docker login 40.76.167.146:80 -u admin -p Harbor12345 + docker login 40.76.167.146:80 -u admin -p $(harbor-password) +- task: Bash@3 + inputs: + targetType: 'inline' + script: | + # Write your commands here + docker build --image $(imageName):$(BuildId) --registry $(registryName) --file Dockerfile . + docker images + #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' From 7b5ee66ab835d8adc1f9d49fc1eb54f121a9a311 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 16:52:33 +0100 Subject: [PATCH 38/66] 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 4ad4b0caf..9cabd7d46 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,6 +14,7 @@ variables: BuildId: '$(Build.BuildId)' tag: '$(Build.BuildId)' + steps: - task: Bash@3 inputs: @@ -26,7 +27,7 @@ steps: cat /etc/docker/daemon.json sudo systemctl daemon-reload sudo systemctl restart docker - docker login 40.76.167.146:80 -u admin -p $(harbor-password) + docker login 40.76.167.146:80 -u admin -p $(harbor-passwd) - task: Bash@3 From 7b2d2b394086a7ab26d73253beec4b1392818c42 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 17:02:39 +0100 Subject: [PATCH 39/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9cabd7d46..a30ea7f18 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,7 +16,9 @@ variables: steps: + - task: Bash@3 + name: 'Docker_login_Harbor' inputs: targetType: 'inline' script: | @@ -31,15 +33,17 @@ steps: - task: Bash@3 + name: 'Docker_build' inputs: targetType: 'inline' script: | # Write your commands here - docker build --image $(imageName):$(BuildId) --registry $(registryName) --file Dockerfile . + docker build -t $(registryName)/nqcc:$(BuildID) . docker images + echo 'Build Success!' #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' - + \ No newline at end of file From 0f75ae9f0526ebf4d041d2baa3bc4cf18321163f Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 17:14:28 +0100 Subject: [PATCH 40/66] 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 a30ea7f18..440409765 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,9 +10,9 @@ pool: variables: HELM_EXPERIMENTAL_OCI: 1 registryName: '40.76.167.146' - imageName: 'flask-python' BuildId: '$(Build.BuildId)' tag: '$(Build.BuildId)' + reponame: '$(Build.Repository.Name)' steps: @@ -38,7 +38,7 @@ steps: targetType: 'inline' script: | # Write your commands here - docker build -t $(registryName)/nqcc:$(BuildID) . + docker build -t $(registryName)/nqcc/$(reponame):$(BuildID) . docker images echo 'Build Success!' #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' From 80ce038a30bc030504228dbca2adbe6e6143e762 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 17:18:23 +0100 Subject: [PATCH 41/66] 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 440409765..973b2baaf 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -38,7 +38,8 @@ steps: targetType: 'inline' script: | # Write your commands here - docker build -t $(registryName)/nqcc/$(reponame):$(BuildID) . + second_half_name=$(echo $(reponame) | cut -d'/' -f2) + docker build -t $(registryName)/nqcc/$(second_half_name):$(BuildID) . docker images echo 'Build Success!' #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' From 6faf5fca2e1cfdbda636538d6de1a8cbb2ccf6f9 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 17:23:19 +0100 Subject: [PATCH 42/66] 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 973b2baaf..3d6ade3d5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -38,8 +38,8 @@ steps: targetType: 'inline' script: | # Write your commands here - second_half_name=$(echo $(reponame) | cut -d'/' -f2) - docker build -t $(registryName)/nqcc/$(second_half_name):$(BuildID) . + second_half_name=$(echo $reponame | cut -d'/' -f2) + docker build -t $(registryName)/nqcc/$second_half_name:$(BuildID) . docker images echo 'Build Success!' #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' From f756e8917be48f220e000d2763e6479fc1e0dbf0 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 17:31:46 +0100 Subject: [PATCH 43/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3d6ade3d5..ee1c94b09 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -31,6 +31,12 @@ steps: sudo systemctl restart docker docker login 40.76.167.146:80 -u admin -p $(harbor-passwd) +- script: | + full_name=$(reponame) + IFS='/' read -ra parts <<< "$full_name" + second_half=${parts[1]} + echo "##vso[task.setvariable variable=second_half]$second_half" + displayName: 'Set Second Half as Environment Variable' - task: Bash@3 name: 'Docker_build' @@ -38,8 +44,7 @@ steps: targetType: 'inline' script: | # Write your commands here - second_half_name=$(echo $reponame | cut -d'/' -f2) - docker build -t $(registryName)/nqcc/$second_half_name:$(BuildID) . + docker build -t $(registryName)/nqcc/$(second_half):$(BuildID) . docker images echo 'Build Success!' #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' From 2273cc7418af1a98b57351a5568b30149f6f5915 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 18:25:02 +0100 Subject: [PATCH 44/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ee1c94b09..7e11fee20 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,6 +48,19 @@ steps: docker images echo 'Build Success!' #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' + displayName: 'Build docker Image in the Worker' + +- task: Bash@3 + name: 'Docker_push' + inputs: + targetType: 'inline' + script: | + # Write your commands here + docker push $(registryName)/nqcc/$(second_half):$(BuildID) . + docker images + echo 'Build Success!' + displayName: 'Update Docker Image in the remote Registry' + From 04e458bde269a0b3e6da9c92ae3ded05412a3beb Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 18:29:07 +0100 Subject: [PATCH 45/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7e11fee20..10e98748f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -56,7 +56,7 @@ steps: targetType: 'inline' script: | # Write your commands here - docker push $(registryName)/nqcc/$(second_half):$(BuildID) . + docker push $(registryName)/nqcc/$(second_half):$(BuildID) docker images echo 'Build Success!' displayName: 'Update Docker Image in the remote Registry' From 326b981e786dea1baa8d809bea66c03f2e044d4d Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Thu, 4 Jan 2024 21:05:03 +0100 Subject: [PATCH 46/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 112 +++++++++++++++++++++++--------------------- 1 file changed, 58 insertions(+), 54 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 10e98748f..b888f42f2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,66 +3,70 @@ name: Build pipeline trigger: - main -pool: - vmImage: 'ubuntu-latest' - -variables: - HELM_EXPERIMENTAL_OCI: 1 - registryName: '40.76.167.146' - BuildId: '$(Build.BuildId)' - tag: '$(Build.BuildId)' - reponame: '$(Build.Repository.Name)' +jobs: +- job: + displayName: "CI Job" + pool: + vmImage: 'ubuntu-latest' + + variables: + HELM_EXPERIMENTAL_OCI: 1 + registryName: '40.76.167.146' + BuildId: '$(Build.BuildId)' + tag: '$(Build.BuildId)' + reponame: '$(Build.Repository.Name)' -steps: -- task: Bash@3 - name: 'Docker_login_Harbor' - inputs: - targetType: 'inline' - script: | - # Write your commands here - cat /etc/docker/daemon.json - echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "insecure-registries": ["0.0.0.0/0"] }' | sudo tee /etc/docker/daemon.json - echo "restart docker..." - cat /etc/docker/daemon.json - sudo systemctl daemon-reload - sudo systemctl restart docker - docker login 40.76.167.146:80 -u admin -p $(harbor-passwd) + steps: -- script: | - full_name=$(reponame) - IFS='/' read -ra parts <<< "$full_name" - second_half=${parts[1]} - echo "##vso[task.setvariable variable=second_half]$second_half" - displayName: 'Set Second Half as Environment Variable' + - task: Bash@3 + name: 'Docker_login_Harbor' + inputs: + targetType: 'inline' + script: | + # Write your commands here + cat /etc/docker/daemon.json + echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "insecure-registries": ["0.0.0.0/0"] }' | sudo tee /etc/docker/daemon.json + echo "restart docker..." + cat /etc/docker/daemon.json + sudo systemctl daemon-reload + sudo systemctl restart docker + docker login 40.76.167.146:80 -u admin -p $(harbor-passwd) -- task: Bash@3 - name: 'Docker_build' - inputs: - targetType: 'inline' - script: | - # Write your commands here - docker build -t $(registryName)/nqcc/$(second_half):$(BuildID) . - docker images - echo 'Build Success!' - #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' - displayName: 'Build docker Image in the Worker' + - script: | + full_name=$(reponame) + IFS='/' read -ra parts <<< "$full_name" + second_half=${parts[1]} + echo "##vso[task.setvariable variable=second_half]$second_half" + displayName: 'Set Second Half as Environment Variable' -- task: Bash@3 - name: 'Docker_push' - inputs: - targetType: 'inline' - script: | - # Write your commands here - docker push $(registryName)/nqcc/$(second_half):$(BuildID) - docker images - echo 'Build Success!' - displayName: 'Update Docker Image in the remote Registry' - + - task: Bash@3 + name: 'Docker_build' + inputs: + targetType: 'inline' + script: | + # Write your commands here + docker build -t $(registryName)/nqcc/$(second_half):$(BuildID) . + docker images + echo 'Build Success!' + #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' + displayName: 'Build docker Image in the Worker' + - task: Bash@3 + name: 'Docker_push' + inputs: + targetType: 'inline' + script: | + # Write your commands here + docker push $(registryName)/nqcc/$(second_half):$(BuildID) + docker images + echo 'Build Success!' + displayName: 'Update Docker Image in the remote Registry' + - - - \ No newline at end of file + + + + \ No newline at end of file From 12b57dbd70ccc04261838d52ac56a93cbeff5aa8 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sat, 6 Jan 2024 22:21:48 +0100 Subject: [PATCH 47/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 46 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b888f42f2..e66f30785 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,7 +6,7 @@ trigger: jobs: - job: - displayName: "CI Job" + displayName: "CI Pipeline" pool: vmImage: 'ubuntu-latest' @@ -64,9 +64,47 @@ jobs: docker images echo 'Build Success!' displayName: 'Update Docker Image in the remote Registry' - - +- job: + displayName: "CI Pipeline" + pool: + vmImage: 'ubuntu-latest' - \ No newline at end of file + + steps: + + - task: Bash@3 + displayName: 'Update Helm Chart ' + inputs: + targetType: 'inline' + script: | + apt-get update -y && apt-get install openssh-client git -y + mkdir -p ˜/.ssh + echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa + chmod 600 /root/.ssh/id_rsa + ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts + chmod 644 ~/.ssh/known_hosts + eval $(ssh-agent -s) + echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + git config --global user.email "gitlab-ci@gmail.com" + git config --global user.name "gitlab-ci" + git clone git@gitlab.com:container-solutions/nqcc-helmcharts.git + cd manifest-repo + ls -latr + - task: Bash@3 + displayName: 'Update Helm Chart ' + inputs: + targetType: 'inline' + script: | + # Update Image TAG + - sed -i "s/login_demo:.*/login_demo:${CI_COMMIT_SHORT_SHA}/g" test-login-app/values.yaml + - git add test-login-app/values.yaml + - git commit -am "Update Image" + - git push + + + + + + \ No newline at end of file From 66a303aa880727841605dc35c004349eb4511971 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 01:43:49 +0100 Subject: [PATCH 48/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e66f30785..e0b7b1054 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -81,16 +81,16 @@ jobs: script: | apt-get update -y && apt-get install openssh-client git -y mkdir -p ˜/.ssh - echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa + echo "$ssh-private-key" > /root/.ssh/id_rsa chmod 600 /root/.ssh/id_rsa ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - git config --global user.email "gitlab-ci@gmail.com" - git config --global user.name "gitlab-ci" + echo "$ssh-private-key" | tr -d '\r' | ssh-add - + git config --global user.email "rodrigo.rras@gmail.com" + git config --global user.name "rodrigo.rras" git clone git@gitlab.com:container-solutions/nqcc-helmcharts.git - cd manifest-repo + cd nqcc-app ls -latr - task: Bash@3 displayName: 'Update Helm Chart ' @@ -98,8 +98,8 @@ jobs: targetType: 'inline' script: | # Update Image TAG - - sed -i "s/login_demo:.*/login_demo:${CI_COMMIT_SHORT_SHA}/g" test-login-app/values.yaml - - git add test-login-app/values.yaml + - sed -i "s/login_demo:.*/login_demo:$(tag)/g" values.yaml + - git add values.yaml - git commit -am "Update Image" - git push From e24eab00dc8a1f937b9cf67592a97358c9396ecb Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 02:03:58 +0100 Subject: [PATCH 49/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e0b7b1054..3962aa277 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,6 +48,7 @@ jobs: targetType: 'inline' script: | # Write your commands here + echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) docker build -t $(registryName)/nqcc/$(second_half):$(BuildID) . docker images echo 'Build Success!' @@ -60,6 +61,7 @@ jobs: targetType: 'inline' script: | # Write your commands here + echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) docker push $(registryName)/nqcc/$(second_half):$(BuildID) docker images echo 'Build Success!' From 94a141e9c12beef914fe888809b3c1451ccd85f3 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 02:12:45 +0100 Subject: [PATCH 50/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3962aa277..cc9815cbb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,6 +61,8 @@ jobs: targetType: 'inline' script: | # Write your commands here + echo "Logging again to mitigate issue" + docker login 40.76.167.146:80 echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) docker push $(registryName)/nqcc/$(second_half):$(BuildID) docker images From 6df95c2d5bdbbb063e71bd7ccb98d7a14f66b279 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 02:26:35 +0100 Subject: [PATCH 51/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cc9815cbb..4267bd491 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,7 +5,7 @@ trigger: jobs: -- job: +- job: CI displayName: "CI Pipeline" pool: vmImage: 'ubuntu-latest' @@ -62,7 +62,8 @@ jobs: script: | # Write your commands here echo "Logging again to mitigate issue" - docker login 40.76.167.146:80 + docker logout + docker login 40.76.167.146:80 -u admin -p Harbor12345 echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) docker push $(registryName)/nqcc/$(second_half):$(BuildID) docker images @@ -70,10 +71,11 @@ jobs: displayName: 'Update Docker Image in the remote Registry' -- job: +- job: CD displayName: "CI Pipeline" pool: vmImage: 'ubuntu-latest' + dependsOn: CI steps: From 64a1899dc2621af7326085894d503d29eaa69184 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 02:52:14 +0100 Subject: [PATCH 52/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4267bd491..c15da0592 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,7 @@ jobs: cat /etc/docker/daemon.json sudo systemctl daemon-reload sudo systemctl restart docker - docker login 40.76.167.146:80 -u admin -p $(harbor-passwd) + docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) - script: | full_name=$(reponame) @@ -62,8 +62,8 @@ jobs: script: | # Write your commands here echo "Logging again to mitigate issue" - docker logout - docker login 40.76.167.146:80 -u admin -p Harbor12345 + docker logout http://40.76.167.146:80 + docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) docker push $(registryName)/nqcc/$(second_half):$(BuildID) docker images From ee5c67e47cdb2c3c5675705fe6e17ade1f1e35fa Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 02:55:37 +0100 Subject: [PATCH 53/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c15da0592..d651340e2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -65,7 +65,7 @@ jobs: docker logout http://40.76.167.146:80 docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) - docker push $(registryName)/nqcc/$(second_half):$(BuildID) + sudo docker push $(registryName)/nqcc/$(second_half):$(BuildID) docker images echo 'Build Success!' displayName: 'Update Docker Image in the remote Registry' From be4065199e2f56f9781be0b7584545ec9227f482 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 03:27:43 +0100 Subject: [PATCH 54/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d651340e2..acae9cec0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,11 +61,11 @@ jobs: targetType: 'inline' script: | # Write your commands here - echo "Logging again to mitigate issue" - docker logout http://40.76.167.146:80 - docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) - echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) - sudo docker push $(registryName)/nqcc/$(second_half):$(BuildID) + # echo "Logging again to mitigate issue" + #docker logout http://40.76.167.146:80 + # docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) + # echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) + docker push $(registryName)/nqcc/$(second_half) docker images echo 'Build Success!' displayName: 'Update Docker Image in the remote Registry' From 4ab9350e6c447d2755f0fd85a92348cca00de2a5 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 03:34:17 +0100 Subject: [PATCH 55/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index acae9cec0..ff1ec7377 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -65,9 +65,9 @@ jobs: #docker logout http://40.76.167.146:80 # docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) # echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) - docker push $(registryName)/nqcc/$(second_half) - docker images - echo 'Build Success!' + docker push $(registryName)/nqcc/$(second_half):$(BuildID) + # docker images + # echo 'Build Success!' displayName: 'Update Docker Image in the remote Registry' From 845eef2b0544fa4bdbc6ea57e7f8f903c4a71765 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 03:37:02 +0100 Subject: [PATCH 56/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ff1ec7377..faa66d4c4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,8 +48,8 @@ jobs: targetType: 'inline' script: | # Write your commands here - echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) - docker build -t $(registryName)/nqcc/$(second_half):$(BuildID) . + echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildId) + docker build -t $(registryName)/nqcc/$(second_half):$(BuildId) . docker images echo 'Build Success!' #workingDirectory: '$(Build.SourcesDirectory)/AppA.WebApi' @@ -64,15 +64,15 @@ jobs: # echo "Logging again to mitigate issue" #docker logout http://40.76.167.146:80 # docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) - # echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildID) - docker push $(registryName)/nqcc/$(second_half):$(BuildID) + # echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildId) + docker push $(registryName)/nqcc/$(second_half):$(BuildId) # docker images # echo 'Build Success!' displayName: 'Update Docker Image in the remote Registry' - job: CD - displayName: "CI Pipeline" + displayName: "CD Pipeline" pool: vmImage: 'ubuntu-latest' dependsOn: CI From 925c821e13ab2fc7d77919a7fa430b1082a32484 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 03:54:37 +0100 Subject: [PATCH 57/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index faa66d4c4..99d072601 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,6 +61,8 @@ jobs: targetType: 'inline' script: | # Write your commands here + cat /etc/docker/daemon.json + cat ~/.docker/daemon.json # echo "Logging again to mitigate issue" #docker logout http://40.76.167.146:80 # docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) From cb6788455d12d5169c2875deb3e4e640512c69db Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 04:06:58 +0100 Subject: [PATCH 58/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 99d072601..b53c6e1bc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,7 +28,7 @@ jobs: script: | # Write your commands here cat /etc/docker/daemon.json - echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "insecure-registries": ["0.0.0.0/0"] }' | sudo tee /etc/docker/daemon.json + echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/actions_job", "insecure-registries": ["0.0.0.0/0"] }' | sudo tee /etc/docker/daemon.json echo "restart docker..." cat /etc/docker/daemon.json sudo systemctl daemon-reload @@ -61,15 +61,15 @@ jobs: targetType: 'inline' script: | # Write your commands here - cat /etc/docker/daemon.json - cat ~/.docker/daemon.json + # cat /etc/docker/daemon.json + # cat ~/.docker/daemon.json # echo "Logging again to mitigate issue" #docker logout http://40.76.167.146:80 # docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) # echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildId) docker push $(registryName)/nqcc/$(second_half):$(BuildId) - # docker images - # echo 'Build Success!' + # docker images + # echo 'Build Success!' displayName: 'Update Docker Image in the remote Registry' From 2bbe11b038ee8d4de3555e940321426858f7fa6e Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 04:08:42 +0100 Subject: [PATCH 59/66] 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 b53c6e1bc..eb1e62708 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,8 +61,8 @@ jobs: targetType: 'inline' script: | # Write your commands here - # cat /etc/docker/daemon.json - # cat ~/.docker/daemon.json + cat /etc/docker/daemon.json + cat ~/.docker/daemon.json # echo "Logging again to mitigate issue" #docker logout http://40.76.167.146:80 # docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) From e064021d01ab2b1abf25924dbfe554c2b8618fdf Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 04:26:34 +0100 Subject: [PATCH 60/66] 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 eb1e62708..98f3690b8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,7 +28,7 @@ jobs: script: | # Write your commands here cat /etc/docker/daemon.json - echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/actions_job", "insecure-registries": ["0.0.0.0/0"] }' | sudo tee /etc/docker/daemon.json + echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/actions_job", "insecure-registries": ["40.76.167.146:80"] }' | sudo tee /etc/docker/daemon.json echo "restart docker..." cat /etc/docker/daemon.json sudo systemctl daemon-reload @@ -60,6 +60,7 @@ jobs: inputs: targetType: 'inline' script: | + docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) # Write your commands here cat /etc/docker/daemon.json cat ~/.docker/daemon.json From de8e17c46d2141029a7df916e166bd5186323919 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sun, 7 Jan 2024 04:32:50 +0100 Subject: [PATCH 61/66] 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 98f3690b8..114093719 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,7 +28,7 @@ jobs: script: | # Write your commands here cat /etc/docker/daemon.json - echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/actions_job", "insecure-registries": ["40.76.167.146:80"] }' | sudo tee /etc/docker/daemon.json + echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/actions_job", "insecure-registries": ["0.0.0.0/0"] }' | sudo tee /etc/docker/daemon.json echo "restart docker..." cat /etc/docker/daemon.json sudo systemctl daemon-reload @@ -68,6 +68,7 @@ jobs: #docker logout http://40.76.167.146:80 # docker login http://40.76.167.146:80 -u admin -p $(harbor-passwd) # echo "docker push" $(registryName)/nqcc/$(second_half):$(BuildId) + docker push $(registryName)/nqcc/$(second_half):$(BuildId) # docker images # echo 'Build Success!' From 3026a1d2e2cfbcea5aa7e775ba55049214e1930d Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Mon, 8 Jan 2024 01:02:22 +0100 Subject: [PATCH 62/66] 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 114093719..c427bce2e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -91,6 +91,7 @@ jobs: script: | apt-get update -y && apt-get install openssh-client git -y mkdir -p ˜/.ssh + echo $ssh-private-key echo "$ssh-private-key" > /root/.ssh/id_rsa chmod 600 /root/.ssh/id_rsa ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts From 58e3e466511b4ee0310425e1925061ffc9e85444 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Mon, 8 Jan 2024 01:04:28 +0100 Subject: [PATCH 63/66] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c427bce2e..8455c5c7f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -79,7 +79,6 @@ jobs: displayName: "CD Pipeline" pool: vmImage: 'ubuntu-latest' - dependsOn: CI steps: From 83e2026ec11c673d586e455d502dce8cddf40174 Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Mon, 8 Jan 2024 01:12:07 +0100 Subject: [PATCH 64/66] 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 8455c5c7f..539f780bf 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -90,8 +90,8 @@ jobs: script: | apt-get update -y && apt-get install openssh-client git -y mkdir -p ˜/.ssh - echo $ssh-private-key - echo "$ssh-private-key" > /root/.ssh/id_rsa + echo $(ssh-private-key) + echo "$(ssh-private-key)" > /root/.ssh/id_rsa chmod 600 /root/.ssh/id_rsa ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts From 31b70b49bf2032130702148b2640fb8f2e708ddb Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sat, 13 Jan 2024 18:35:33 +0100 Subject: [PATCH 65/66] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-2.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 azure-pipelines-2.yml diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml new file mode 100644 index 000000000..ef87f7a6c --- /dev/null +++ b/azure-pipelines-2.yml @@ -0,0 +1,23 @@ +stages: +- stage: ExampleStage + jobs: + - job: Job1 + displayName: 'Job 1' + pool: + vmImage: 'windows-latest' + + steps: + - script: | + echo "##vso[task.setvariable variable=variableFromJob1]ValueFromJob1" + displayName: 'Set Output Variable' + + - job: Job2 + displayName: 'Job 2' + dependsOn: Job1 + pool: + vmImage: 'windows-latest' + + steps: + - script: | + echo "Variable from Job 1: $(Job1.variableFromJob1)" + displayName: 'Use Output Variable' \ No newline at end of file From aa4db4a334701c8eaf049957f90814df36c8ca6c Mon Sep 17 00:00:00 2001 From: Rodrigo Rios Date: Sat, 13 Jan 2024 18:37:46 +0100 Subject: [PATCH 66/66] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index ef87f7a6c..73bad0eea 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -8,7 +8,7 @@ stages: steps: - script: | - echo "##vso[task.setvariable variable=variableFromJob1]ValueFromJob1" + echo "##vso[task.setvariable variable=variableFromJob1]$variableFromJob1" displayName: 'Set Output Variable' - job: Job2 @@ -19,5 +19,5 @@ stages: steps: - script: | - echo "Variable from Job 1: $(Job1.variableFromJob1)" + echo "Variable from Job 1: $(variableFromJob1)" displayName: 'Use Output Variable' \ No newline at end of file