From 9d62169afd107688bc929b65ef7c989df53740be Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:00:39 -0500 Subject: [PATCH 01/13] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..901abfe2 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,39 @@ +# Docker +# Build and push an image to Azure Container Registry +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker + +trigger: +- master + +resources: +- repo: self + +variables: + # Container registry service connection established during pipeline creation + dockerRegistryServiceConnection: '6b09b07c-c850-4b53-95df-5be1f9310371' + imageRepository: 'idikasonsflatris' + containerRegistry: 'signaturedevops.azurecr.io' + dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile' + tag: '$(Build.BuildId)' + + # Agent VM image name + vmImageName: 'ubuntu-latest' + +stages: +- stage: Build + displayName: Build and push stage + jobs: + - job: Build + displayName: Build + pool: + vmImage: $(vmImageName) + steps: + - task: Docker@2 + displayName: Build and push an image to container registry + inputs: + command: buildAndPush + repository: $(imageRepository) + dockerfile: $(dockerfilePath) + containerRegistry: $(dockerRegistryServiceConnection) + tags: | + $(tag) From 055fda56c472f0ba2ad44beeb6c91354220bab92 Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:38:15 -0500 Subject: [PATCH 02/13] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 00000000..676233af --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,21 @@ +# Node.js +# Build a general Node.js project with npm. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run build + displayName: 'npm install and build' From 79fb0e576d35827ca57ff53ea3aa5228802cb876 Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:49:50 -0500 Subject: [PATCH 03/13] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-2.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 00000000..676233af --- /dev/null +++ b/azure-pipelines-2.yml @@ -0,0 +1,21 @@ +# Node.js +# Build a general Node.js project with npm. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run build + displayName: 'npm install and build' From 8d38ec7f40164ff44d82106004512889e19f4fad Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:58:25 -0500 Subject: [PATCH 04/13] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-3.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 azure-pipelines-3.yml diff --git a/azure-pipelines-3.yml b/azure-pipelines-3.yml new file mode 100644 index 00000000..676233af --- /dev/null +++ b/azure-pipelines-3.yml @@ -0,0 +1,21 @@ +# Node.js +# Build a general Node.js project with npm. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run build + displayName: 'npm install and build' From e67f2382601c5c5e64a4979da782d2972b85f084 Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:07:41 -0500 Subject: [PATCH 05/13] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-4.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 azure-pipelines-4.yml diff --git a/azure-pipelines-4.yml b/azure-pipelines-4.yml new file mode 100644 index 00000000..f58a4e5d --- /dev/null +++ b/azure-pipelines-4.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 977ed8f1b1961ae1ad32d9a0a52384eb4d65a62e Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:15:42 -0500 Subject: [PATCH 06/13] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-5.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 azure-pipelines-5.yml diff --git a/azure-pipelines-5.yml b/azure-pipelines-5.yml new file mode 100644 index 00000000..f58a4e5d --- /dev/null +++ b/azure-pipelines-5.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 8c776e1f3dfc70155ab4bef91845fd85a6abc558 Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:51:21 -0500 Subject: [PATCH 07/13] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-6.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 azure-pipelines-6.yml diff --git a/azure-pipelines-6.yml b/azure-pipelines-6.yml new file mode 100644 index 00000000..f58a4e5d --- /dev/null +++ b/azure-pipelines-6.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 58d020550dcfc740834f3227fd854fc32334011c Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:43:40 -0500 Subject: [PATCH 08/13] Update Dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5a68fa7c..886504a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ -FROM node:12 -WORKDIR /usr/src/app +FROM node:15 +RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app +WORKDIR /home/node/app COPY package.json yarn.lock ./ -RUN yarn --frozen-lockfile +RUN yarn --ignore-engines COPY . ./ RUN yarn build EXPOSE 3000 From da6985a65a77f6ccadcc9b85a4798d5b973422b4 Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:47:49 -0500 Subject: [PATCH 09/13] Update azure Dockerfile From fb7d8bc275a4a9155e745d12da5a111f2f6c7c03 Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Fri, 26 Jan 2024 16:10:18 -0500 Subject: [PATCH 10/13] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f56bcc73..dc23e4b7 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "dev:client": "babel-node server/start-dev-client.js", "dev:server": "babel-node server/start-dev-server.js", "dev:server:watch": "nodemon server/start-dev-server.js --exec babel-node", - "build": "env-cmd next build web", - "start": "env-cmd babel-node server/start-prod.js" + "build": "env-cmd -e next build web", + "start": "env-cmd -e babel-node server/start-prod.js" }, "dependencies": { "body-parser": "^1.19.0", From 92cda2c02b31f0ccbe08b3b782969b390e361b5e Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Tue, 6 Feb 2024 17:41:07 -0500 Subject: [PATCH 11/13] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b35b726a..de655510 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,4 @@ Thanks [@paulgergely](https://twitter.com/paulgergely) for the initial flat design! Also see [elm-flatris](https://github.com/w0rm/elm-flatris). +Thanks to signature codes From 142a49c97ee1b1e54dba52dc99eb71c56364d0aa Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Tue, 6 Feb 2024 17:46:34 -0500 Subject: [PATCH 12/13] Create Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1 @@ + From 6d630777862cd97551f23a18a5fbfb837c688c04 Mon Sep 17 00:00:00 2001 From: idika <38588016+idikasons@users.noreply.github.com> Date: Tue, 6 Feb 2024 19:54:40 -0500 Subject: [PATCH 13/13] Delete Jenkinsfile --- Jenkinsfile | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 8b137891..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1 +0,0 @@ -