I'm getting a strange error when I get to the deploy step of firebase.
The config (/bitbucket-pipeline.yaml) steps look like this...
image: node:16
pipelines:
branches:
dev:
- step:
name: Setup
caches:
- node
script:
- npm install
- step:
name: Build
caches:
- node
script:
- npm run build:dev
artifacts:
- build/**
- step:
name: Deploy
caches:
- node
deployment: staging
script:
- pipe: atlassian/firebase-deploy:1.3.0
variables:
PROJECT_ID: $FIREBASE_PROJECT_ID
KEY_FILE: $FIREBASE_PRIVATE_KEY
DEBUG: "true"
The (/package.json) file looks something like this (hopefully this is all the relevant parts)...
{
...
"engines": {
"node": 16
},
...
"dependencies": {
...
"firebase": "^9.6.1",
...
"react-scripts": "5.0.0",
...
},
"scripts": {
...
"build:dev": "env-cmd -f .env.development react-scripts build",
...
}
}The deployment error looks like this...
<span>DEBUG: Starting new HTTPS connection (1): <a href="http://bitbucket.org/" rel="noopener noreferrer" target="_blank">bitbucket.org</a></span>
<span>DEBUG: <a href="https://bitbucket.org/" rel="noopener noreferrer" target="_blank">https://bitbucket.org:443</a> "GET /bitbucketpipelines/official-pipes/raw/master/pipes.prod.json HTTP/1.1" 200 None</span>
<span>INFO: Executing the pipe...</span>
<span>INFO: Current NodeJS version:</span>
<span> installing : node-v12.22.12</span>
<span> mkdir : /usr/local/n/versions/node/12.22.12</span>
<span> fetch : <a href="https://nodejs.org/dist/v12.22.12/node-v12.22.12-linux-x64.tar.gz" rel="noopener nofollow noreferrer" target="_blank">https://nodejs.org/dist/v12.22.12/node-v12.22.12-linux-x64.tar.gz</a></span>
<span> installed : v12.22.12 (with npm 6.14.16)</span>
<span>Traceback (most recent call last):</span>
<span> File "/main.py", line 170, in <module></span>
<span> pipe.run()</span>
<span> File "/main.py", line 108, in run</span>
<span> key_content = base64.b64decode(key_file)</span>
<span> File "/usr/local/lib/python3.7/base64.py", line 87, in b64decode</span>
<span> return binascii.a2b_base64(s)</span>
<span>binascii.Error: Incorrect padding</span><span>Status: Downloaded newer image for bitbucketpipelines/firebase-deploy:1.3.0</span>
I can't see anything out of the ordinary. Could anyone please point me at what might be wrong?