# .github/workflows/deploy.yml name: Deploy to Azure on: push: branches: - main jobs: build-and-deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: '22' - name: Install dependencies run: npm ci - name: Build the app run: npm run build - name: Log in to Azure uses: azure/login@v2 with: creds: ${{ secrets.AZURE_CREDENTIALS }} - name: Deploy to Azure Container Apps run: | az containerapp up \ --name my-container-app \ --resource-group my-resource-group \ --image my-image:my_tag \ --environment my-environment \ --cpu 1 --memory 2Gi \ --env-vars NODE_ENV=production PORT=3000
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter