Skip to content

Commit

Permalink
Initial git workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bleunguts committed Nov 28, 2023
1 parent 7c9fb84 commit 2b4e5ef
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/managedEnv20231128015747.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
push:
branches:
- main
env:
DOTNET_CORE_VERSION: 7.0.x
CONTAINER_APP_NAME: projectx.gatewayapi-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.managedEnv20231128015747_SPN }}
- 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 }}

0 comments on commit 2b4e5ef

Please sign in to comment.