project released!!! #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/azure-deploy.yml | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repo | |
| uses: actions/checkout@v3 | |
| - name: Log in to Azure | |
| uses: azure/login@v1 | |
| with: | |
| creds: ${{ secrets.AZURE_CREDENTIALS }} | |
| - name: Log in to Azure Container Registry | |
| uses: azure/docker-login@v1 | |
| with: | |
| login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }} | |
| username: ${{ secrets.REGISTRY_USERNAME }} | |
| password: ${{ secrets.REGISTRY_PASSWORD }} | |
| - name: Build and push Docker image | |
| run: | | |
| docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/deepfx-studio:${{ github.sha }} | |
| docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/deepfx-studio:${{ github.sha }} | |
| - name: Deploy to Azure App Service | |
| uses: azure/webapps-deploy@v2 | |
| with: | |
| app-name: 'deepfx-studio' | |
| images: '${{ secrets.REGISTRY_LOGIN_SERVER }}/deepfx-studio:${{ github.sha }}' | |
| # |