Update panel titles and button formatting in Index.cshtml #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: .NET | |
on: | |
push: | |
branches: ["main"] | |
paths: src/Application/** | |
pull_request: | |
branches: ["main"] | |
paths: src/Application/** | |
env: | |
registryName: kqrfo3r42nm3umpnpreg.azurecr.io | |
repositoryName: techexcel/dotnetcoreapp | |
dockerFolderPath: ./src/Application/src/RazorPagesTestSample | |
tag: ${{ github.run_number }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- 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/[email protected] | |
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://MngEnvMCAP399752-dev.azurewebsites.net/ | |
steps: | |
- name: "Login via Azure CLI" | |
uses: azure/[email protected] | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- uses: azure/webapps-deploy@v2 | |
with: | |
app-name: "MngEnvMCAP399752-dev" | |
images: $registryName/techexcel/dotnetcoreapp:${{github.run_number}} |