Skip to content

Commit

Permalink
Update deploy-container.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Khos committed Aug 30, 2023
1 parent 49b1e31 commit d5ad381
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/deploy-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,23 @@ jobs:
restore-keys: |
${{ runner.os }}-${{inputs.container-name}}
# Build and Push Docker image to Azure Container Registry
- name: Build and Push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ailabcr.azurecr.io/${{inputs.container-name}}:${{inputs.tag}}
tags: ailabcr.azurecr.io/${{inputs.container-name}}:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

# Move cache
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
# Deploy to Azure Web App (Optional)
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: "nachet-webapp"
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}
images: "<Azure_Container_Registry_Name>.azurecr.io/${{inputs.container-name}}:${{inputs.tag}}"
app-name: "nachet-deployment"
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
images: "ailabcr.azurecr.io/${{inputs.container-name}}:latest"

0 comments on commit d5ad381

Please sign in to comment.