File tree Expand file tree Collapse file tree 1 file changed +25
-18
lines changed
Expand file tree Collapse file tree 1 file changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -39,23 +39,30 @@ jobs:
3939 name : masterchef-api
4040 path : target/*.jar
4141
42- deploy :
43- runs-on : ubuntu-latest
44- needs : build-and-test
45- if : github.ref == 'refs/heads/main' # Solo se ejecuta en push a main
46- permissions :
47- id-token : write
48- contents : read
42+ deploy :
43+ runs-on : ubuntu-latest
44+ needs : build
45+ permissions :
46+ id-token : write
47+ contents : read
4948
50- steps :
51- - name : 📥 Descargar artefacto generado
52- uses : actions/download-artifact@v4
53- with :
54- name : masterchef-api
49+ steps :
50+ - name : Download artifact from build job
51+ uses : actions/download-artifact@v4
52+ with :
53+ name : java-app
54+
55+ - name : Login to Azure
56+ uses : azure/login@v2
57+ with :
58+ client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_E3BBA8DC2C9849D1B0EFC1E10CE96DD0 }}
59+ tenant-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_A24240666636424A8BBF6C81D16FE73E }}
60+ subscription-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_7C9E359957B94BC8950CA740807D8487 }}
5561
56- - name : 🚀 Desplegar en Azure Web App
57- uses : azure/webapps-deploy@v2
58- with :
59- app-name : ' masterchefT2'
60- publish-profile : ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
61- package : ' *.jar'
62+ - name : Deploy to Azure Web App
63+ id : deploy-to-webapp
64+ uses : azure/webapps-deploy@v3
65+ with :
66+ app-name : ' theboys-sirha'
67+ slot-name : ' Production'
68+ package : ' *.jar'
You can’t perform that action at this time.
0 commit comments