Skip to content

Commit

Permalink
feat: azure deployment ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm committed Jan 6, 2025
1 parent 97d6c6b commit bf609c8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,23 @@ jobs:
GIT_COMMIT_SHA=${{github.sha}}
cache-from: type=gha
cache-to: type=gha,mode=max
deploy:
# only run on published releases, enable this when we release
#if: github.event_name == 'release' && github.event.action == 'published'
name: Deploy to Azure
runs-on: ubuntu-latest
needs: docker-build-and-push
strategy:
matrix:
project: [laskugeneraattori]
steps:
- name: Login via Azure CLI
uses: azure/login@v2
with:
client-id: ${{secrets.AZURE_CLIENT_ID}}
subscription-id: ${{secrets.AZURE_SUBSCRIPTION_ID}}
tenant-id: ${{secrets.AZURE_TENANT_ID}}
- uses: azure/webapps-deploy@v3
with:
app-name: tikweb-invoice-generator-prod # TODO: if we ever setup more envs than prod, make this variable customizable
images: "${{ env.docker_tag_prefix }}/${{matrix.project}}:sha-${{ github.sha }}"

0 comments on commit bf609c8

Please sign in to comment.