Skip to content

project released!!! #27

project released!!!

project released!!! #27

Workflow file for this run

# .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 }}'
#