File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
- name : Build and push Docker image
1
+ name : Build, push Docker image and deploy to Azure
2
2
3
3
on :
4
4
push :
32
32
docker build --label "org.opencontainers.image.title=copilot-metrics-viewer" --label "org.opencontainers.image.description=Metrics viewer for GitHub Copilot usage" --label "org.opencontainers.image.source=$GITHUB_REPO" -t ghcr.io/$GITHUB_REPO:latest .
33
33
docker push ghcr.io/$GITHUB_REPO:latest
34
34
env :
35
- GITHUB_REPO : ${{ github.repository }}
35
+ GITHUB_REPO : ${{ github.repository }}
36
+
37
+ deploy :
38
+ runs-on : ubuntu-latest
39
+ needs : push_to_ghcr
40
+ environment :
41
+ name : ' production'
42
+ url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
43
+
44
+ steps :
45
+ - name : Deploy to Azure Web App
46
+ id : deploy-to-webapp
47
+ uses : azure/webapps-deploy@v2
48
+ with :
49
+ app-name : ' copilot-metrics-viewer'
50
+ slot-name : ' production'
51
+ publish-profile : ${{ secrets.AzureAppService_PublishProfile_e94dfd38811a421eafe5ce4eee13b68b }}
52
+ images : ' ghcr.io//${{ secrets.AzureAppService_ContainerUsername_6e6399ab4c2848209c95dce8fff002f0 }}/github-copilot-resources/copilot-metrics-viewer:${{ github.sha }}'
You can’t perform that action at this time.
0 commit comments