From 32d870fddbade52ef27c6372a36407d5f39a3138 Mon Sep 17 00:00:00 2001 From: wtomaz808 Date: Tue, 22 Oct 2024 07:56:49 -1000 Subject: [PATCH 01/17] first-workflow --- .github/first-workflow.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/first-workflow.yml diff --git a/.github/first-workflow.yml b/.github/first-workflow.yml new file mode 100644 index 00000000..e69de29b From 79ad5f4263d7a143da3a41653d62ba43af29a317 Mon Sep 17 00:00:00 2001 From: wtomaz808 Date: Tue, 22 Oct 2024 08:00:08 -1000 Subject: [PATCH 02/17] fix-location firstworkflow --- .github/{ => workflows}/first-workflow.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/first-workflow.yml (100%) diff --git a/.github/first-workflow.yml b/.github/workflows/first-workflow.yml similarity index 100% rename from .github/first-workflow.yml rename to .github/workflows/first-workflow.yml From 6a3c95c89b32af31810c0f421a7bb0066e89c357 Mon Sep 17 00:00:00 2001 From: wtomaz808 Date: Tue, 22 Oct 2024 08:33:55 -1000 Subject: [PATCH 03/17] new branch and saved files --- .github/workflows/first-workflow.yml | 46 ++++++++++ .../src/RazorPagesTestSample/Data/Message.cs | 1 + src/InfrastructureAsCode/main.bicep | 92 ++++++++++++++++++- 3 files changed, 137 insertions(+), 2 deletions(-) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index e69de29b..a3ca1c6b 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -0,0 +1,46 @@ + +#name: First Workflow + +#on: + # workflow_dispatch: + +#jobs: + # job1: + # runs-on: ubuntu-latest + # steps: + # - name: Echo Job 1 + # run: echo "This is Job 1" + + # job2: + # runs-on: ubuntu-latest + # steps: + # - name: Echo Job 2 + # run: echo "This is Job 2" + +name: First Workflow + +on: + workflow_dispatch: + issues: + types: [opened] + +jobs: + job1: + runs-on: ubuntu-latest + + steps: + - name: Step one + run: echo "Log from step one" + - name: Step two + run: echo "Log from step two" + + job2: + needs: job1 + runs-on: ubuntu-latest + + steps: + - name: Cowsays + uses: mscoutermarsh/cowsays-action@master + with: + text: 'Ready for prod--ship it!' + color: 'magenta' \ No newline at end of file diff --git a/src/Application/src/RazorPagesTestSample/Data/Message.cs b/src/Application/src/RazorPagesTestSample/Data/Message.cs index ea99cbd6..a22a20c0 100644 --- a/src/Application/src/RazorPagesTestSample/Data/Message.cs +++ b/src/Application/src/RazorPagesTestSample/Data/Message.cs @@ -9,6 +9,7 @@ public class Message [Required] [DataType(DataType.Text)] + // /doc [StringLength(200, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")] public string Text { get; set; } } diff --git a/src/InfrastructureAsCode/main.bicep b/src/InfrastructureAsCode/main.bicep index 6dc69618..d8e740d2 100644 --- a/src/InfrastructureAsCode/main.bicep +++ b/src/InfrastructureAsCode/main.bicep @@ -8,10 +8,98 @@ var webAppName = '${uniqueString(resourceGroup().id)}-${environment}' var appServicePlanName = '${uniqueString(resourceGroup().id)}-mpnp-asp' var logAnalyticsName = '${uniqueString(resourceGroup().id)}-mpnp-la' var appInsightsName = '${uniqueString(resourceGroup().id)}-mpnp-ai' -var sku = 'S1' +var sku = 'P0V3' var registryName = '${uniqueString(resourceGroup().id)}mpnpreg' var registrySku = 'Standard' var imageName = 'techexcel/dotnetcoreapp' var startupCommand = '' -// TODO: complete this script + +resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2021-12-01-preview' = { + name: logAnalyticsName + location: location + properties: { + sku: { + name: 'PerGB2018' + } + retentionInDays: 90 + workspaceCapping: { + dailyQuotaGb: 1 + } + } +} + +resource appInsights 'Microsoft.Insights/components@2020-02-02-preview' = { + name: appInsightsName + location: location + kind: 'web' + properties: { + Application_Type: 'web' + WorkspaceResourceId: logAnalyticsWorkspace.id + } +} + +resource containerRegistry 'Microsoft.ContainerRegistry/registries@2020-11-01-preview' = { + name: registryName + location: location + sku: { + name: registrySku + } + properties: { + adminUserEnabled: true + } +} + +resource appServicePlan 'Microsoft.Web/serverFarms@2022-09-01' = { + name: appServicePlanName + location: location + kind: 'linux' + properties: { + reserved: true + } + sku: { + name: sku + } +} + +resource appServiceApp 'Microsoft.Web/sites@2020-12-01' = { + name: webAppName + location: location + properties: { + serverFarmId: appServicePlan.id + httpsOnly: true + clientAffinityEnabled: false + siteConfig: { + linuxFxVersion: 'DOCKER|${containerRegistry.name}.azurecr.io/${uniqueString(resourceGroup().id)}/${imageName}' + http20Enabled: true + minTlsVersion: '1.2' + appCommandLine: startupCommand + appSettings: [ + { + name: 'WEBSITES_ENABLE_APP_SERVICE_STORAGE' + value: 'false' + } + { + name: 'DOCKER_REGISTRY_SERVER_URL' + value: 'https://${containerRegistry.name}.azurecr.io' + } + { + name: 'DOCKER_REGISTRY_SERVER_USERNAME' + value: containerRegistry.name + } + { + name: 'DOCKER_REGISTRY_SERVER_PASSWORD' + value: containerRegistry.listCredentials().passwords[0].value + } + { + name: 'APPINSIGHTS_INSTRUMENTATIONKEY' + value: appInsights.properties.InstrumentationKey + } + ] + } + } +} + +output application_name string = appServiceApp.name +output application_url string = appServiceApp.properties.hostNames[0] +output container_registry_name string = containerRegistry.name From f37665de6276edb601868efd2c484f5510059d6d Mon Sep 17 00:00:00 2001 From: wtomaz808 Date: Tue, 22 Oct 2024 08:37:25 -1000 Subject: [PATCH 04/17] sync again --- .github/workflows/first-workflow.yml | 2 +- src/Application/src/RazorPagesTestSample/Data/Message.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index a3ca1c6b..074b5e88 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -17,7 +17,7 @@ # - name: Echo Job 2 # run: echo "This is Job 2" -name: First Workflow +name: First Workflow808 on: workflow_dispatch: diff --git a/src/Application/src/RazorPagesTestSample/Data/Message.cs b/src/Application/src/RazorPagesTestSample/Data/Message.cs index a22a20c0..618ddc85 100644 --- a/src/Application/src/RazorPagesTestSample/Data/Message.cs +++ b/src/Application/src/RazorPagesTestSample/Data/Message.cs @@ -9,7 +9,7 @@ public class Message [Required] [DataType(DataType.Text)] - // /doc + // /doc [StringLength(200, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")] public string Text { get; set; } } From ff389c6956b2aff0771fde760984e5666eb1aa74 Mon Sep 17 00:00:00 2001 From: wtomaz808 Date: Tue, 22 Oct 2024 10:09:38 -1000 Subject: [PATCH 05/17] move new onew --- .github/workflows/deploy3.yml | 123 ++++++++++++++++++++++ src/InfrastructureAsCode/credentials.json | 9 ++ 2 files changed, 132 insertions(+) create mode 100644 .github/workflows/deploy3.yml create mode 100644 src/InfrastructureAsCode/credentials.json diff --git a/.github/workflows/deploy3.yml b/.github/workflows/deploy3.yml new file mode 100644 index 00000000..e8b06149 --- /dev/null +++ b/.github/workflows/deploy3.yml @@ -0,0 +1,123 @@ +name: .NET CI + +env: + registryName: onfp77x2viod4.azurecr.io + repositoryName: techexcel/dotnetcoreapp + dockerFolderPath: ./src/Application/src/RazorPagesTestSample + tag: ${{github.run_number}} + +on: + push: + branches: [ main ] + paths: src/Application/** + pull_request: + branches: [ main ] + paths: src/Application/** + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0 + + - name: Restore dependencies + run: dotnet restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj + - name: Build + run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj + - name: Test + run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj + + dockerBuildPush: + runs-on: ubuntu-latest + needs: build + + steps: + - uses: actions/checkout@v3 + + - name: Docker Login + # You may pin to the exact commit or the version. + # uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c + uses: docker/login-action@v1.9.0 + with: + # Server address of Docker registry. If not set then will default to Docker Hub + registry: ${{ secrets.ACR_LOGIN_SERVER }} + # Username used to log against the Docker registry + username: ${{ secrets.ACR_USERNAME }} + # Password or personal access token used to log against the Docker registry + password: ${{ secrets.ACR_PASSWORD }} + # Log out from the Docker registry at the end of a job + logout: true + + - name: Docker Build + run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath + + - name: Docker Push + run: docker push $registryName/$repositoryName:$tag + + deploy-to-dev: + + runs-on: ubuntu-latest + needs: dockerBuildPush + environment: + name: dev + url: https://{your_prefix}-dev.azurewebsites.net/ + + steps: + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-dev' + images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} + + deploy-to-test: + + runs-on: ubuntu-latest + needs: deploy-to-dev + environment: + name: test + url: https://pickles808-test.azurewebsites.net/ + + steps: + - uses: actions/checkout@v3 + + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-test' + images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} + + deploy-to-prod: + + runs-on: ubuntu-latest + needs: deploy-to-test + environment: + name: prod + url: https://pickles808-prod.azurewebsites.net/ + + steps: + - uses: actions/checkout@v3 + + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-prod' + images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} \ No newline at end of file diff --git a/src/InfrastructureAsCode/credentials.json b/src/InfrastructureAsCode/credentials.json new file mode 100644 index 00000000..c0d4dbc7 --- /dev/null +++ b/src/InfrastructureAsCode/credentials.json @@ -0,0 +1,9 @@ +{ + "name": "GitHubDevOpsCredential", + "issuer": "https://token.actions.githubusercontent.com", + "subject": "repo:wtomaz808/TechExcel-Accelerate-developer-productivity-with-GitHub-Copilot-and-Dev-Box:ref:refs/heads/main", + "description": "Deploy Azure resources from the TechExcel DevOps practices GitHub repo", + "audiences": [ + "api://AzureADTokenExchange" + ] +} From 084858b7b282c5a61f0d8a3243f203b0ea5edfc1 Mon Sep 17 00:00:00 2001 From: Bill Tomasiewicz <42211687+wtomaz808@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:18:22 -1000 Subject: [PATCH 06/17] appdeploy --- .github/workflows/main.yml | 123 +++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..392aa9f8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,123 @@ +name: .NET CI + +env: + registryName: onfp77x2viod4.azurecr.io + repositoryName: techexcel/dotnetcoreapp + dockerFolderPath: ./src/Application/src/RazorPagesTestSample + tag: ${{github.run_number}} + +on: + push: + branches: [ main ] + paths: src/Application/** + pull_request: + branches: [ main ] + paths: src/Application/** + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0 + + - name: Restore dependencies + run: dotnet restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj + - name: Build + run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj + - name: Test + run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj + + dockerBuildPush: + runs-on: ubuntu-latest + needs: build + + steps: + - uses: actions/checkout@v3 + + - name: Docker Login + # You may pin to the exact commit or the version. + # uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c + uses: docker/login-action@v1.9.0 + with: + # Server address of Docker registry. If not set then will default to Docker Hub + registry: ${{ secrets.ACR_LOGIN_SERVER }} + # Username used to log against the Docker registry + username: ${{ secrets.ACR_USERNAME }} + # Password or personal access token used to log against the Docker registry + password: ${{ secrets.ACR_PASSWORD }} + # Log out from the Docker registry at the end of a job + logout: true + + - name: Docker Build + run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath + + - name: Docker Push + run: docker push $registryName/$repositoryName:$tag + + deploy-to-dev: + + runs-on: ubuntu-latest + needs: dockerBuildPush + environment: + name: dev + url: https://{your_prefix}-dev.azurewebsites.net/ + + steps: + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-dev' + images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} + + deploy-to-test: + + runs-on: ubuntu-latest + needs: deploy-to-dev + environment: + name: test + url: https://pickles808-test.azurewebsites.net/ + + steps: + - uses: actions/checkout@v3 + + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-test' + images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} + + deploy-to-prod: + + runs-on: ubuntu-latest + needs: deploy-to-test + environment: + name: prod + url: https://pickles808-prod.azurewebsites.net/ + + steps: + - uses: actions/checkout@v3 + + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-prod' + images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} From 0b64c01a2736b22d556504c528942a56169a7fee Mon Sep 17 00:00:00 2001 From: wtomaz808 Date: Tue, 22 Oct 2024 11:07:06 -1000 Subject: [PATCH 07/17] more chnagesxx --- .github/workflows/dotnet-deploy-4.yml | 135 ++++++++++++++++++ .../Exercise-03/Task-3}/deploy3.yml | 2 +- 2 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/dotnet-deploy-4.yml rename {.github/workflows => Solution/Exercise-03/Task-3}/deploy3.yml (98%) diff --git a/.github/workflows/dotnet-deploy-4.yml b/.github/workflows/dotnet-deploy-4.yml new file mode 100644 index 00000000..c26592a0 --- /dev/null +++ b/.github/workflows/dotnet-deploy-4.yml @@ -0,0 +1,135 @@ +name: .NET CI + +env: + registryName: onfp77x2viod4.azurecr.io + repositoryName: techexcel/dotnetcoreapp + dockerFolderPath: ./src/Application/src/RazorPagesTestSample + tag: ${{github.run_number}} + +on: + push: + branches: [ main ] + paths: src/Application/** + pull_request: + branches: [ main ] + paths: src/Application/** + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0 + + - name: Restore dependencies + run: dotnet restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj + - name: Build + run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj + - name: Test + run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj + - uses: actions/github-script@v6 + if: failure() + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + let body = "${{ env.build_name }} Workflow Failure \n Build Number: ${{ github.run_number }} \n Build Log: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} \n SHA: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) \n"; + github.issues.create({ + owner: context.repo.owner, + repo: context.repo.repo, + title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ", + body: body + }); + + dockerBuildPush: + runs-on: ubuntu-latest + needs: build + + steps: + - uses: actions/checkout@v3 + + - name: Docker Login + # You may pin to the exact commit or the version. + # uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c + uses: docker/login-action@v1.9.0 + with: + # Server address of Docker registry. If not set then will default to Docker Hub + registry: ${{ secrets.ACR_LOGIN_SERVER }} + # Username used to log against the Docker registry + username: ${{ secrets.ACR_USERNAME }} + # Password or personal access token used to log against the Docker registry + password: ${{ secrets.ACR_PASSWORD }} + # Log out from the Docker registry at the end of a job + logout: true + + - name: Docker Build + run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath + + - name: Docker Push + run: docker push $registryName/$repositoryName:$tag + + deploy-to-dev: + + runs-on: ubuntu-latest + needs: dockerBuildPush + environment: + name: dev + url: https://pickles808-dev.azurewebsites.net/ + + steps: + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-dev' + images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} + + deploy-to-test: + + runs-on: ubuntu-latest + needs: deploy-to-dev + environment: + name: test + url: https://pickles808-test.azurewebsites.net/ + + steps: + - uses: actions/checkout@v3 + + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-test' + images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} + + deploy-to-prod: + + runs-on: ubuntu-latest + needs: deploy-to-test + environment: + name: prod + url: https://pickles808-prod.azurewebsites.net/ + + steps: + - uses: actions/checkout@v3 + + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-prod' + images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} diff --git a/.github/workflows/deploy3.yml b/Solution/Exercise-03/Task-3/deploy3.yml similarity index 98% rename from .github/workflows/deploy3.yml rename to Solution/Exercise-03/Task-3/deploy3.yml index e8b06149..085ea394 100644 --- a/.github/workflows/deploy3.yml +++ b/Solution/Exercise-03/Task-3/deploy3.yml @@ -67,7 +67,7 @@ jobs: needs: dockerBuildPush environment: name: dev - url: https://{your_prefix}-dev.azurewebsites.net/ + url: https://pickles808-dev.azurewebsites.net/ steps: - name: 'Login via Azure CLI' From adfffeae94fdfda0850963ff08bbf8e1e587fd21 Mon Sep 17 00:00:00 2001 From: Bill Tomasiewicz <42211687+wtomaz808@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:08:43 -1000 Subject: [PATCH 08/17] Update dotnet-deploy-4.yml --- .github/workflows/dotnet-deploy-4.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-deploy-4.yml b/.github/workflows/dotnet-deploy-4.yml index c26592a0..a6ca218e 100644 --- a/.github/workflows/dotnet-deploy-4.yml +++ b/.github/workflows/dotnet-deploy-4.yml @@ -1,4 +1,4 @@ -name: .NET CI +name: .NET CIx808 env: registryName: onfp77x2viod4.azurecr.io From 0ee7f38e0e36c9b195ed92071163099c85f214f8 Mon Sep 17 00:00:00 2001 From: Bill Tomasiewicz <42211687+wtomaz808@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:22:27 -1000 Subject: [PATCH 09/17] Delete .github/workflows/main.yml --- .github/workflows/main.yml | 123 ------------------------------------- 1 file changed, 123 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 392aa9f8..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,123 +0,0 @@ -name: .NET CI - -env: - registryName: onfp77x2viod4.azurecr.io - repositoryName: techexcel/dotnetcoreapp - dockerFolderPath: ./src/Application/src/RazorPagesTestSample - tag: ${{github.run_number}} - -on: - push: - branches: [ main ] - paths: src/Application/** - pull_request: - branches: [ main ] - paths: src/Application/** - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.0 - - - name: Restore dependencies - run: dotnet restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj - - name: Build - run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj - - name: Test - run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj - - dockerBuildPush: - runs-on: ubuntu-latest - needs: build - - steps: - - uses: actions/checkout@v3 - - - name: Docker Login - # You may pin to the exact commit or the version. - # uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c - uses: docker/login-action@v1.9.0 - with: - # Server address of Docker registry. If not set then will default to Docker Hub - registry: ${{ secrets.ACR_LOGIN_SERVER }} - # Username used to log against the Docker registry - username: ${{ secrets.ACR_USERNAME }} - # Password or personal access token used to log against the Docker registry - password: ${{ secrets.ACR_PASSWORD }} - # Log out from the Docker registry at the end of a job - logout: true - - - name: Docker Build - run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath - - - name: Docker Push - run: docker push $registryName/$repositoryName:$tag - - deploy-to-dev: - - runs-on: ubuntu-latest - needs: dockerBuildPush - environment: - name: dev - url: https://{your_prefix}-dev.azurewebsites.net/ - - steps: - - name: 'Login via Azure CLI' - uses: azure/login@v2.1.1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - uses: azure/webapps-deploy@v2 - with: - app-name: 'pickles808-dev' - images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} - - deploy-to-test: - - runs-on: ubuntu-latest - needs: deploy-to-dev - environment: - name: test - url: https://pickles808-test.azurewebsites.net/ - - steps: - - uses: actions/checkout@v3 - - - name: 'Login via Azure CLI' - uses: azure/login@v2.1.1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - uses: azure/webapps-deploy@v2 - with: - app-name: 'pickles808-test' - images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} - - deploy-to-prod: - - runs-on: ubuntu-latest - needs: deploy-to-test - environment: - name: prod - url: https://pickles808-prod.azurewebsites.net/ - - steps: - - uses: actions/checkout@v3 - - - name: 'Login via Azure CLI' - uses: azure/login@v2.1.1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - uses: azure/webapps-deploy@v2 - with: - app-name: 'pickles808-prod' - images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} From 2986a00bb9dd02fe8006e8436b837daa7ad09c6e Mon Sep 17 00:00:00 2001 From: Bill Tomasiewicz <42211687+wtomaz808@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:23:37 -1000 Subject: [PATCH 10/17] Delete .github/workflows/pages.yml --- .github/workflows/pages.yml | 62 ------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml deleted file mode 100644 index cedae546..00000000 --- a/.github/workflows/pages.yml +++ /dev/null @@ -1,62 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll site to Pages - -on: - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.1' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - cache-version: 0 # Increment this number if you need to re-download cached gems - - name: Setup Pages - id: pages - uses: actions/configure-pages@v2 - - name: Build with Jekyll - # Outputs to the './_site' directory by default - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - env: - JEKYLL_ENV: production - - name: Upload artifact - # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v1 - - # Deployment job - deploy: - environment: - name: github-pages - url: "${{ steps.deployment.outputs.page_url }}" - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 From f4f2ab40696e046c268790c4345bb17611c4319d Mon Sep 17 00:00:00 2001 From: Bill Tomasiewicz <42211687+wtomaz808@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:24:08 -1000 Subject: [PATCH 11/17] Delete .github/workflows/deploy3.yml --- .github/workflows/deploy3.yml | 123 ---------------------------------- 1 file changed, 123 deletions(-) delete mode 100644 .github/workflows/deploy3.yml diff --git a/.github/workflows/deploy3.yml b/.github/workflows/deploy3.yml deleted file mode 100644 index e8b06149..00000000 --- a/.github/workflows/deploy3.yml +++ /dev/null @@ -1,123 +0,0 @@ -name: .NET CI - -env: - registryName: onfp77x2viod4.azurecr.io - repositoryName: techexcel/dotnetcoreapp - dockerFolderPath: ./src/Application/src/RazorPagesTestSample - tag: ${{github.run_number}} - -on: - push: - branches: [ main ] - paths: src/Application/** - pull_request: - branches: [ main ] - paths: src/Application/** - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.0 - - - name: Restore dependencies - run: dotnet restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj - - name: Build - run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj - - name: Test - run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj - - dockerBuildPush: - runs-on: ubuntu-latest - needs: build - - steps: - - uses: actions/checkout@v3 - - - name: Docker Login - # You may pin to the exact commit or the version. - # uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c - uses: docker/login-action@v1.9.0 - with: - # Server address of Docker registry. If not set then will default to Docker Hub - registry: ${{ secrets.ACR_LOGIN_SERVER }} - # Username used to log against the Docker registry - username: ${{ secrets.ACR_USERNAME }} - # Password or personal access token used to log against the Docker registry - password: ${{ secrets.ACR_PASSWORD }} - # Log out from the Docker registry at the end of a job - logout: true - - - name: Docker Build - run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath - - - name: Docker Push - run: docker push $registryName/$repositoryName:$tag - - deploy-to-dev: - - runs-on: ubuntu-latest - needs: dockerBuildPush - environment: - name: dev - url: https://{your_prefix}-dev.azurewebsites.net/ - - steps: - - name: 'Login via Azure CLI' - uses: azure/login@v2.1.1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - uses: azure/webapps-deploy@v2 - with: - app-name: 'pickles808-dev' - images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} - - deploy-to-test: - - runs-on: ubuntu-latest - needs: deploy-to-dev - environment: - name: test - url: https://pickles808-test.azurewebsites.net/ - - steps: - - uses: actions/checkout@v3 - - - name: 'Login via Azure CLI' - uses: azure/login@v2.1.1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - uses: azure/webapps-deploy@v2 - with: - app-name: 'pickles808-test' - images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} - - deploy-to-prod: - - runs-on: ubuntu-latest - needs: deploy-to-test - environment: - name: prod - url: https://pickles808-prod.azurewebsites.net/ - - steps: - - uses: actions/checkout@v3 - - - name: 'Login via Azure CLI' - uses: azure/login@v2.1.1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - uses: azure/webapps-deploy@v2 - with: - app-name: 'pickles808-prod' - images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} \ No newline at end of file From 9f52f981bdacae2a3a49f2c85242b575079aa60a Mon Sep 17 00:00:00 2001 From: wtomaz808 Date: Tue, 22 Oct 2024 11:25:40 -1000 Subject: [PATCH 12/17] move stuff around --- .github/workflows/dotnet-deploy-4.yml | 2 +- .../mysolutions}/first-workflow.yml | 0 .../mysolutions}/pages.yml | 124 +++++++++--------- 3 files changed, 63 insertions(+), 63 deletions(-) rename {.github/workflows => Solution/mysolutions}/first-workflow.yml (100%) rename {.github/workflows => Solution/mysolutions}/pages.yml (96%) diff --git a/.github/workflows/dotnet-deploy-4.yml b/.github/workflows/dotnet-deploy-4.yml index c26592a0..ea005d88 100644 --- a/.github/workflows/dotnet-deploy-4.yml +++ b/.github/workflows/dotnet-deploy-4.yml @@ -1,4 +1,4 @@ -name: .NET CI +name: .NET CI_wtomaz808 env: registryName: onfp77x2viod4.azurecr.io diff --git a/.github/workflows/first-workflow.yml b/Solution/mysolutions/first-workflow.yml similarity index 100% rename from .github/workflows/first-workflow.yml rename to Solution/mysolutions/first-workflow.yml diff --git a/.github/workflows/pages.yml b/Solution/mysolutions/pages.yml similarity index 96% rename from .github/workflows/pages.yml rename to Solution/mysolutions/pages.yml index cedae546..572b8039 100644 --- a/.github/workflows/pages.yml +++ b/Solution/mysolutions/pages.yml @@ -1,62 +1,62 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll site to Pages - -on: - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.1' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - cache-version: 0 # Increment this number if you need to re-download cached gems - - name: Setup Pages - id: pages - uses: actions/configure-pages@v2 - - name: Build with Jekyll - # Outputs to the './_site' directory by default - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - env: - JEKYLL_ENV: production - - name: Upload artifact - # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v1 - - # Deployment job - deploy: - environment: - name: github-pages - url: "${{ steps.deployment.outputs.page_url }}" - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll site to Pages + +on: + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.1' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems + - name: Setup Pages + id: pages + uses: actions/configure-pages@v2 + - name: Build with Jekyll + # Outputs to the './_site' directory by default + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production + - name: Upload artifact + # Automatically uploads an artifact from the './_site' directory by default + uses: actions/upload-pages-artifact@v1 + + # Deployment job + deploy: + environment: + name: github-pages + url: "${{ steps.deployment.outputs.page_url }}" + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 From e3d7709a127a3191a318da4927085537ff4b9de2 Mon Sep 17 00:00:00 2001 From: Bill Tomasiewicz <42211687+wtomaz808@users.noreply.github.com> Date: Wed, 23 Oct 2024 06:45:29 -1000 Subject: [PATCH 13/17] Update dotnet-deploy-4.yml --- .github/workflows/dotnet-deploy-4.yml | 96 +++------------------------ 1 file changed, 9 insertions(+), 87 deletions(-) diff --git a/.github/workflows/dotnet-deploy-4.yml b/.github/workflows/dotnet-deploy-4.yml index 6ecd1168..64e93165 100644 --- a/.github/workflows/dotnet-deploy-4.yml +++ b/.github/workflows/dotnet-deploy-4.yml @@ -3,8 +3,8 @@ name: .NET CI_wtomaz808 env: registryName: onfp77x2viod4.azurecr.io repositoryName: techexcel/dotnetcoreapp - dockerFolderPath: ./solution/mysolutions - tag: ${{github.run_number}} + dockerFolderPath: ./solution/mysolutions + tag: ${{ github.run_number }} on: push: @@ -15,108 +15,30 @@ on: paths: src/Application/** # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -jobs: - build: - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.0 - - - name: Restore dependencies - run: dotnet restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj - - name: Build - run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj - - name: Test - run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj - - uses: actions/github-script@v6 - if: failure() - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - let body = "${{ env.build_name }} Workflow Failure \n Build Number: ${{ github.run_number }} \n Build Log: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} \n SHA: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) \n"; - github.issues.create({ - owner: context.repo.owner, - repo: context.repo.repo, - title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ", - body: body - }); - +jobs: dockerBuildPush: runs-on: ubuntu-latest - needs: build steps: - uses: actions/checkout@v3 - name: Docker Login - # You may pin to the exact commit or the version. - # uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c - uses: docker/login-action@v1.9.0 + uses: docker/login-action@v1 with: - # Server address of Docker registry. If not set then will default to Docker Hub registry: ${{ secrets.ACR_LOGIN_SERVER }} - # Username used to log against the Docker registry username: ${{ secrets.ACR_USERNAME }} - # Password or personal access token used to log against the Docker registry password: ${{ secrets.ACR_PASSWORD }} - # Log out from the Docker registry at the end of a job - logout: true - name: Docker Build - run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath - - - name: Docker Push - run: docker push $registryName/$repositoryName:$tag - - deploy-to-dev: - - runs-on: ubuntu-latest - needs: dockerBuildPush - environment: - name: dev - url: https://pickles808-dev.azurewebsites.net/ - - steps: - - name: 'Login via Azure CLI' - uses: azure/login@v2.1.1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} + run: docker build -t ${{ env.registryName }}/${{ env.repositoryName }}:${{ env.tag }} -f ${{ env.dockerFolderPath }}/Dockerfile ${{ env.dockerFolderPath }} - - uses: azure/webapps-deploy@v2 - with: - app-name: 'pickles808-dev' - images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} - - deploy-to-test: - - runs-on: ubuntu-latest - needs: deploy-to-dev - environment: - name: test - url: https://pickles808-test.azurewebsites.net/ - - steps: - - uses: actions/checkout@v3 - - - name: 'Login via Azure CLI' - uses: azure/login@v2.1.1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - uses: azure/webapps-deploy@v2 - with: - app-name: 'pickles808-test' - images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} + - name: Docker Push + run: docker push ${{ env.registryName }}/${{ env.repositoryName }}:${{ env.tag }} deploy-to-prod: - runs-on: ubuntu-latest - needs: deploy-to-test + needs: dockerBuildPush environment: name: prod url: https://pickles808-prod.azurewebsites.net/ @@ -132,4 +54,4 @@ jobs: - uses: azure/webapps-deploy@v2 with: app-name: 'pickles808-prod' - images: onfp77x2viod4.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}} + images: ${{ env.registryName }}/${{ env.repositoryName }}:${{ env.tag }} From 4a33927249b1c2b00fb03955f0902f623c45f5ec Mon Sep 17 00:00:00 2001 From: Bill Tomasiewicz <42211687+wtomaz808@users.noreply.github.com> Date: Wed, 23 Oct 2024 06:50:19 -1000 Subject: [PATCH 14/17] Create main.yml --- .github/workflows/main.yml | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..26478ef7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,57 @@ +name: .NET CI_wtomaz8081 + +env: + registryName: onfp77x2viod4.azurecr.io + repositoryName: techexcel/dotnetcoreapp + dockerFolderPath: ./solution/mysolutions + tag: ${{ github.run_number }} + +on: + push: + branches: [ main ] + paths: src/Application/** + pull_request: + branches: [ main ] + paths: src/Application/** + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + dockerBuildPush: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Docker Login + uses: docker/login-action@v1 + with: + registry: ${{ secrets.ACR_LOGIN_SERVER }} + username: ${{ secrets.ACR_USERNAME }} + password: ${{ secrets.ACR_PASSWORD }} + + - name: Docker Build + run: docker build -t ${{ env.registryName }}/${{ env.repositoryName }}:${{ env.tag }} -f ${{ env.dockerFolderPath }}/Dockerfile ${{ env.dockerFolderPath }} + + - name: Docker Push + run: docker push ${{ env.registryName }}/${{ env.repositoryName }}:${{ env.tag }} + + deploy-to-prod: + runs-on: ubuntu-latest + needs: dockerBuildPush + environment: + name: prod + url: https://pickles808-prod.azurewebsites.net/ + + steps: + - uses: actions/checkout@v3 + + - name: 'Login via Azure CLI' + uses: azure/login@v2.1.1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + + - uses: azure/webapps-deploy@v2 + with: + app-name: 'pickles808-prod' + images: ${{ env.registryName }}/${{ env.repositoryName }}:${{ env.tag }} From 83818f6aee3e5df2553f6c2404d325ac12176152 Mon Sep 17 00:00:00 2001 From: Bill Tomasiewicz <42211687+wtomaz808@users.noreply.github.com> Date: Wed, 23 Oct 2024 06:55:34 -1000 Subject: [PATCH 15/17] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26478ef7..ab318380 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: .NET CI_wtomaz8081 env: registryName: onfp77x2viod4.azurecr.io repositoryName: techexcel/dotnetcoreapp - dockerFolderPath: ./solution/mysolutions + dockerFolderPath: /solution/mysolutions tag: ${{ github.run_number }} on: From a2b4116b116990ffc281d77e617da8ef9532626c Mon Sep 17 00:00:00 2001 From: wtomaz808 Date: Wed, 23 Oct 2024 07:01:53 -1000 Subject: [PATCH 16/17] change df path --- .github/workflows/dotnet-deploy-4.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-deploy-4.yml b/.github/workflows/dotnet-deploy-4.yml index 6ecd1168..98790ca5 100644 --- a/.github/workflows/dotnet-deploy-4.yml +++ b/.github/workflows/dotnet-deploy-4.yml @@ -3,7 +3,7 @@ name: .NET CI_wtomaz808 env: registryName: onfp77x2viod4.azurecr.io repositoryName: techexcel/dotnetcoreapp - dockerFolderPath: ./solution/mysolutions + dockerFolderPath: solution/mysolutions tag: ${{github.run_number}} on: From 6c16dec74471c307c570fcab57bd6a43af4e7275 Mon Sep 17 00:00:00 2001 From: wtomaz808 Date: Wed, 23 Oct 2024 07:16:01 -1000 Subject: [PATCH 17/17] df issues --- .github/workflows/dotnet-deploy-4.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-deploy-4.yml b/.github/workflows/dotnet-deploy-4.yml index 98790ca5..9136123e 100644 --- a/.github/workflows/dotnet-deploy-4.yml +++ b/.github/workflows/dotnet-deploy-4.yml @@ -1,9 +1,9 @@ -name: .NET CI_wtomaz808 +name: .NET CI_deploy1 env: registryName: onfp77x2viod4.azurecr.io repositoryName: techexcel/dotnetcoreapp - dockerFolderPath: solution/mysolutions + dockerFolderPath: ./solution/src/mysolution tag: ${{github.run_number}} on: