File tree Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,32 @@ jobs:
1919 with :
2020 severities : critical
2121 package-types : " "
22- deploy :
22+ render- deploy :
2323 runs-on : ubuntu-latest
2424 needs : scan
2525 steps :
2626 - name : Deploy
2727 run : curl "$DEPLOY_URL"
2828 env :
2929 DEPLOY_URL : ${{ secrets.DEPLOY_URL }}
30+ azure-deploy :
31+ runs-on : ubuntu-latest
32+ needs : scan
33+ permissions :
34+ id-token : write
35+ steps :
36+ - name : Azure login
37+ uses : azure/login@v2
38+ with :
39+ client-id : ${{ secrets.AZURE_CLIENT_ID }}
40+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
41+ subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
42+ - name : Build and deploy
43+ uses : azure/container-apps-deploy-action@v2
44+ with :
45+ resourceGroup : ${{ vars.RESOURCE_GROUP_NAME}}
46+ containerAppEnvironment : ${{ vars.CONTAINER_APP_ENVIRONMENT }}
47+ containerAppName : ${{ vars.CONTAINER_APP_NAME}}
48+ imageToDeploy : ${{ vars.IMAGE }}
49+ registryUsername : ${{ secrets.DOCKERHUB_USERNAME }}
50+ registryPassword : ${{ secrets.DOCKERHUB_TOKEN }}
Original file line number Diff line number Diff line change 6565 if : always()
6666 permissions :
6767 pull-requests : write
68- env :
69- IMAGE_TAG : bitcoin-web-api:latest
7068 steps :
7169 - uses : actions/checkout@v4
7270 - name : Set up QEMU
@@ -83,19 +81,19 @@ jobs:
8381 uses : docker/build-push-action@v6
8482 with :
8583 context : .
86- push : false
84+ push : ${{ github.event_name == 'workflow_call' || github.event_name == 'push' }}
8785 load : true
8886 pull : false
8987 no-cache : false
90- tags : ${{ env.IMAGE_TAG }}
88+ tags : ${{ vars.IMAGE }}
9189 env :
9290 DOCKER_BUILD_SUMMARY : false
9391 DOCKER_BUILD_RECORD_UPLOAD : false
9492 - name : Scan
9593 uses : docker/scout-action@v1
9694 with :
9795 command : cves,recommendations
98- image : local://${{ env.IMAGE_TAG }}
96+ image : local://${{ vars.IMAGE }}
9997 only-severities : ${{ inputs.severities || 'critical,high' }}
10098 only-package-types : ${{ needs.determine-package-type.outputs.package-types || inputs.package-types }}
10199 only-fixed : true
You can’t perform that action at this time.
0 commit comments