Skip to content

Commit

Permalink
Merge pull request #14 from mbuchoff/azure-webapp
Browse files Browse the repository at this point in the history
ci/cd
  • Loading branch information
mbuchoff authored Sep 9, 2023
2 parents f2499b3 + 553a330 commit 7e280e4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/azure_webapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Azure Webapp deploy

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: azure/docker-login@v1
with:
# login-server: mycontainer.azurecr.io
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
docker build . -t mbuchoff/hackathon_230909:${{ github.sha }}
docker push mbuchoff/hackathon_230909:${{ github.sha }}
- uses: azure/webapps-deploy@v2
with:
app-name: 'app-hackathon'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
images: 'mbuchoff/hackathon_230909:${{ github.sha }}'
2 changes: 0 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Build, Test and Deploy backend

on:
# opening a pull request to master and develop branch will be a trigger
pull_request:
branches:
- develop
# any code pushed to master and develop branch will also be a trigger
push:
branches:
- develop
Expand Down

0 comments on commit 7e280e4

Please sign in to comment.