question

Nanip-3242 avatar image
0 Votes"
Nanip-3242 asked SamaraSoucy-MSFT commented

Function apps -I have 3 java based functions apps while deploying the function apps one is overwritten another - using github actions pipeline

I have 3 function apps A,B,C Whenever I am deploying code in function app A it gets deployed in A,B and C. similarly if I try to deploy code in function app B it gets deployed in app A,C as well. how can I debug this issue. I am using GITHUB Actions pipeline (Run Azure function action) for deployment.

using single asp p1v3

github action deploy steps

Deploy-dev:

 needs: [build]
 runs-on: ubuntu-latest
 environment:
   name: dev
 env:
   AZURE_FUNCTIONAPP_NAME: 'xxxxxx-uw-fa-d'

   POM_FUNCTIONAPP_NAME: 'xxx-xxx-xx-xxx'
 #  JAVA_VERSION: '1.8'
   #SLOT_NAME: 'green'
      
 steps:
 - uses: actions/checkout@v2
              
 - name: 'Get asset'
   uses: dsaltares/fetch-gh-release-asset@master
   with:
     repo: "MGMResorts/xxx-xxx-xx-xxxx"
     #version: "tags/v2"
     file: ${
                 {needs.build.outputs.output1}}.zip
     target: "lastfunczip.zip"
     token: ${
                 { secrets.GITHUB_TOKEN }}
               
 - name: 'unzip'  
   uses: montudor/action-zip@v1
   with:
     args: unzip -qq lastfunczip.zip -d lastfunczip
        
 - name: Azure Login
   uses: Azure/login@v1
   with:
     creds: ${
                 { secrets.AZ_CREDS2 }}
        
 - name: 'Run Azure Functions Action'
   uses: Azure/functions-action@v1
   id: fa
   with:
     app-name: ${
                 { env.AZURE_FUNCTIONAPP_NAME }}
     #slot-name: ${
                 { env.SLOT_NAME }}
     package: './lastfunczip/target/azure-functions/${
                 { env.POM_FUNCTIONAPP_NAME }}'
    # publish-profile: ${
                 { steps.publishprofile.outputs.profile }}
azure-functions
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just trying to make sure I understand the scenario correctly since you only posted one config file. Are you trying to deploy from three different repos a->a, b->b, c -> c, or are you using a single repo and trying to deploy to three different apps at different times?

0 Votes 0 ·

0 Answers