Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

# Build and push Docker image to Azure Container Registry (ACR)
# Using Self-hosted Azure DevOps Linux Agent

trigger:
- main

pool:
name: Newpool # ✅ UPDATED: self-hosted agent pool

variables:
dockerRegistryServiceConnection: '3944071b-1303-4003-ac55-a717adc5d1a8'
imageRepository: 'tetrisgameapp'
dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
tag: '$(Build.BuildId)'

steps:
- checkout: self

# (Optional but recommended) Verify Docker on agent
- script: |
docker --version
docker info
displayName: 'Verify Docker installation'

- task: Docker@2
displayName: Build and push Docker image to ACR
inputs:
command: buildAndPush
repository: $(imageRepository)
dockerfile: $(dockerfilePath)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head>
<title>Tetris</title>
<title>mario</title>
<link href="https://fonts.googleapis.com/css?family=Russo+One&display=swap" rel="stylesheet">
<style>
.parent {
Expand Down
5 changes: 2 additions & 3 deletions tetris.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,9 @@ function drawGameOverScreen(){
function drawMainMenu(){
context.fillStyle='#303040'
context.fillRect(0,0, canvas.width, canvas.height)
context.fillStyle='white'
context.fillStyle='Blue'
context.font = '32px Russo One';
context.textAlign = "center";
context.fillText("Lets Play..", canvas.width /2, canvas.height /2)
context.textAlign = "center"; context.fillText("Lets Play..", canvas.width /2, canvas.height /2)

if(window.localStorage.getItem('highscore') !== null){
context.font = '18px Russo One';
Expand Down