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

I can not deploy specified hosting target #595

Open
sekitaka opened this issue Dec 1, 2022 · 0 comments
Open

I can not deploy specified hosting target #595

sekitaka opened this issue Dec 1, 2022 · 0 comments

Comments

@sekitaka
Copy link

sekitaka commented Dec 1, 2022

Affected builder image

gcr.io/cloud-builders-community/firebase

Expected Behavior

I can deploy specified hosting target.

Actual Behavior

I can not deploy specified hosting target.
I got this error.

textPayload: "Step #3 - "deploy to firebase hosting": Error: Deploy target $MY_HOSTING_TARGET not configured for project $MY_FIREBASE_PROJECT_ID. Configure with:"

Steps to Reproduce the Problem

  1. Deploy with this cloudbuild.yml
  - name: gcr.io/MY_GCP_PROJECT/firebase
    id: 'deploy to firebase hosting'
    args: [ 'deploy', '--project=MY_FIREBASE_PROJECT_ID', '--only=hosting:MY_HOSTING_TARGET' ]
    dir: admin-tool

firebase.json like this

{
  "hosting": {
    "target": "MY_HOSTING_TARGET",
    "public": "build",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

Additional Info

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

1 participant