Remove . from azure container app name #3
This file contains 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
on: | |
push: | |
branches: | |
- main | |
env: | |
DOTNET_CORE_VERSION: 7.0.x | |
CONTAINER_APP_NAME: projectxgatewayapi-container-app | |
CONTAINER_APP_ENVIRONMENT_NAME: managedEnv20231128015747 | |
RESOURCE_GROUP: managedEnv20231128015747ResourceGroup | |
CONTAINER_REGISTRY_NAME: registry20231128020059 | |
CONTAINER_REGISTRY_LOGIN_SERVER: registry20231128020059.azurecr.io | |
jobs: | |
BuildAndDeployContainerApp: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_CORE_VERSION }} | |
- name: Azure login | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Container App deploy | |
uses: azure/container-apps-deploy-action@v1 | |
with: | |
appSourcePath: ${{ github.workspace }} | |
acrName: ${{ env.CONTAINER_REGISTRY_NAME }} | |
acrUsername: ${{ secrets.registry20231128020059_USERNAME_74CC }} | |
acrPassword: ${{ secrets.registry20231128020059_PASSWORD_74CC }} | |
imageToBuild: ${{ env.CONTAINER_REGISTRY_LOGIN_SERVER }}/${{ env.CONTAINER_APP_NAME }}:${{ github.sha }} | |
containerAppName: ${{ env.CONTAINER_APP_NAME }} | |
containerAppEnvironment: ${{ env.CONTAINER_APP_ENVIRONMENT_NAME }} | |
resourceGroup: ${{ env.RESOURCE_GROUP }} |