fix: removed "no audio file" #12
This file contains 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
name: Deploy to ACI | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# checkout the repo | |
- name: "Checkout GitHub Action" | |
uses: actions/checkout@main | |
- name: "Login via Azure CLI" | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: "Build and push image" | |
uses: azure/docker-login@v1 | |
with: | |
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }} | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- run: | | |
docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/phinchakdooja:${{ github.sha }} | |
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/phinchakdooja:${{ github.sha }} | |
- name: "Deploy to Azure Container Instances" | |
uses: "azure/aci-deploy@v1" | |
with: | |
resource-group: ${{ secrets.RESOURCE_GROUP }} | |
dns-name-label: run-${{ github.run_number }} | |
image: ${{ secrets.REGISTRY_LOGIN_SERVER }}/phinchakdooja:${{ github.sha }} | |
cpu: 1 | |
memory: 1.5 | |
registry-login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }} | |
registry-username: ${{ secrets.REGISTRY_USERNAME }} | |
registry-password: ${{ secrets.REGISTRY_PASSWORD }} | |
name: phinchakdooja | |
location: "central india" | |
restart-policy: OnFailure | |
environment-variables: | | |
TOKEN=${{ secrets.TOKEN }} |