Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error in to authenticate firebase project. #680

Open
champ96k opened this issue Aug 18, 2023 · 2 comments
Open

getting error in to authenticate firebase project. #680

champ96k opened this issue Aug 18, 2023 · 2 comments

Comments

@champ96k
Copy link

champ96k commented Aug 18, 2023

I am trying to setup a pipeline that adds the apk to the app distribution in firebase. I have the following yml:

Getting error in Authenticate Firebase CLI using service account key.

YML file

# Step 19: Authenticate Firebase CLI with service account key.
      - script: |
          echo "$FIREBASE_SA_KEY" > serviceAccountKey.json
          export GOOGLE_APPLICATION_CREDENTIALS=$(Agent.TempDirectory)/serviceAccountKey.json
          firebase login --non interactive
        displayName: 'Authenticate Firebase CLI'
        env:
          FIREBASE_SA_KEY: $(FIREBASE_SA_KEY)

      # Step 20: Distribute APKs to Firebase App Distribution.
      - script: |
          firebase appdistribution:distribute $(System.DefaultWorkingDirectory)/build/app/outputs/flutter-apk/*uat-release.apk \
            --app "app_id" \
            --groups "Developers" \
            --release-notes "$(Pipeline.Workspace)/ReleaseNotes/combined_release_notes.txt" \
            --project "project_id"
        displayName: 'Build and Deploy to Firebase'
        env:
          FIREBASE_SA_KEY: $(FIREBASE_SA_KEY)

As i also created issue on stack overflow for better understanding link

Tasks

No tasks being tracked yet.
@champ96k
Copy link
Author

@shad-1 @kant @kant @kant @jakobehn @cmaneu @sneakernuts Do you have any idea ?

@surajshenoy
Copy link
Contributor

surajshenoy commented Oct 30, 2023

Hi @champ96k , this forum is available to discuss the concerns regarding labs that you find in Azuredevopslabs site. Seems like your concern is not related to any of the labs. Please try finding the solution in the relevant forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants