Hi guys,
I’ve been trying to implement Github Actions with Google Actions Functions, and it has been throwing some errors. In Github Actions it gets stuck, Google Deploy fails and function is not deployed.
Doppler seems to cause some kind of crash in Google Cloud deployment. I say that because when I try without Doppler it works, but when I use Doppler it crashes.
Here is what Google Cloud logs say:
ERROR: error fetching storage source: generic::unknown: retry budget exhausted (3 attempts): fetching gcs source: unpacking source from gcs: source fet
/tmp/source-archive.zip.zip, and cannot find /tmp/source-archive.zip.ZIP, period.
This error doesn’t happen without Doppler being installed in Github Actions.
And here is the Github Actions file
name: Ci & Cd pipeline
on:
push:
branches:
- dev
jobs:
dev-deploy:
name: Dev deployment
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Doppler CLI
uses: dopplerhq/cli-action@v1
- name: Test Doppler Access
run: doppler secrets download --no-file --format=docker env-no-quotes >> $GITHUB_ENV;
env:
DOPPLER_TOKEN: ${{ secrets.DOPPER_TOKEN_DEVELOPMENT }}
- name: Gcloud Configuration
uses: google-github-actions/setup-gcloud@master
with:
service_account_key: ${{ secrets.DEV_GPC_CREDENTIAL }}
project_id: kiwify-dev
export_default_credentials: true
- id: deploy
uses: google-github-actions/deploy-cloud-functions@main
with:
name: test_doppler_test
runtime: nodejs12
env_vars: NODE_ENV=production
entry_point: server
Is it a bug or what?
I’ve tried configuration both inclusing setup-gcloud and without it, the same error always happens.
If I do it directly with gcloud calling the CLI it works. But then I have a problem that the variables are shown in the logs (maybe there is a way to hide them from the logs).