From 8316869403a1cc75ae02f760c71c2164b571014c Mon Sep 17 00:00:00 2001 From: Eugene Odeluga Date: Sun, 20 Aug 2023 01:31:23 +0100 Subject: [PATCH 1/2] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..701ea172 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,29 @@ +# Docker +# Build a Docker image +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker + +trigger: +- main + +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: '**/Dockerfile' + tags: | + $(tag) From 09370bf4fbb21aac45614ce6392fa6988366f944 Mon Sep 17 00:00:00 2001 From: Eugene Odeluga Date: Sun, 20 Aug 2023 01:34:33 +0100 Subject: [PATCH 2/2] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 701ea172..b8bbb775 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,7 @@ # Docker +- task: NodeTaskRunnerInstaller@0 + inputs: + nodeVersion: '6' # Build a Docker image # https://docs.microsoft.com/azure/devops/pipelines/languages/docker