Skip to content

Commit

Permalink
actualizar create-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
1609033alumno committed Aug 28, 2024
1 parent 5b3a1f8 commit 6f15ae1
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/create-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
name: Create Azure resources
on: [workflow_dispatch]
name: Deploy to Azure
on:
push:
branches:
- main

jobs:
build-and-deploy:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

# Checkout code
- uses: actions/checkout@main

# Log into Azure
- uses: azure/login@v1
- name: Log in to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

# Deploy Bicep file
- name: create resources
uses: azure/arm-deploy@v1
- name: Build and deploy Container App
uses: azure/container-apps-deploy-action@v1
with:
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
resourceGroupName: ${{ vars.AZURE_RG }}
template: ${{ github.workspace }}/config/main.bicep
parameters: 'namePrefix=${{ vars.AZURE_PREFIX }}'
failOnStdErr: false
appSourcePath: ${{ github.workspace }}
acrName: ${{ vars.AZURE_PREFIX }}acr
resourceGroup: ${{ vars.AZURE_RG }}
containerAppName: ${{ vars.AZURE_PREFIX }}containerapp
containerAppEnvironment: ${{ vars.AZURE_PREFIX }}containerappenvironment

0 comments on commit 6f15ae1

Please sign in to comment.