Skip to content

Commit

Permalink
ci: Deploy Backend to Azure App Service in GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilKes committed Feb 13, 2024
1 parent 8e1f36e commit bde6caa
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Docker Image CI

env:
AZURE_WEBAPP_NAME: movieland-backend # set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: './movieland-backend' # set this to the path to your web app project, defaults to the repository root

on:
push:
branches: [ master ]
Expand Down Expand Up @@ -89,4 +93,21 @@ jobs:
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: movieland-frontend/dist # The folder the action should deploy.
folder: movieland-frontend/dist # The folder the action should deploy.

deploy-azure:
runs-on: ubuntu-latest
needs: build-and-push-docker
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
slot-name: 'production'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
images: 'philkes/movie-land-backend:master'

0 comments on commit bde6caa

Please sign in to comment.