diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..5bd0e0de --- /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: +- main + +resources: +- repo: self + +variables: + # Container registry service connection established during pipeline creation + dockerRegistryServiceConnection: '206b4cef-4eb6-4146-9f61-c28739a1de06' + imageRepository: 'pritamtetrisgameapp' + containerRegistry: 'gamelabcontreg.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) diff --git a/tetris.js b/tetris.js index 103a610c..304b6c4d 100644 --- a/tetris.js +++ b/tetris.js @@ -238,7 +238,7 @@ function drawGameOverScreen(){ function drawMainMenu(){ context.fillStyle='#303040' context.fillRect(0,0, canvas.width, canvas.height) - context.fillStyle='white' + context.fillStyle='green' context.font = '32px Russo One'; context.textAlign = "center"; context.fillText("Lets Play..", canvas.width /2, canvas.height /2)