Skip to content

Can't Deploy to Firebase Hosting with GitHub Actions #26134

Answered by hfaulds
bdaley asked this question in Actions
Discussion options

You must be logged in to vote

Hello,

This is a problem with parameter expansion. The firebase command doesn’t expand the parameters, the easiest way to fix this is to wrap your execution in a shell, which will expand paramters.

This is probably more easily shown with some examples. First we tell docker to executed echo $FOO and then we tell it to execute sh -c "echo $FOO":

$ docker run --rm devillex/docker-firebase:latest echo \$FOO
$FOO
$ docker run --rm -e "FOO=b" --entrypoint=sh devillex/docker-firebase:latest -c "echo \$FOO"
b

Confusingly I have to escape $FOO in these examples otherwise my terminal will expand the parameter before it’s passed to docker:

$ FOO=a && docker run --rm -e "FOO=b" devillex/docker-fireb…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants