Skip to content

Deploy

Deploy #13

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
inputs:
image_tag:
description: Image tag to deploy
required: false
default: latest
env:
IMAGE: evcc/optimizer
RESOURCE_GROUP: rg-optimizer-prod
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy infrastructure
uses: azure/cli@v2
with:
inlineScript: |
az deployment group create \
--resource-group ${{ env.RESOURCE_GROUP }} \
--template-file infra/main.bicep \
--parameters \
containerImage=${{ env.IMAGE }}:${{ inputs.image_tag || 'latest' }}