Closed mnzsss closed 1 year ago
I found the error, the github actions don't parse json secrets. I need pass the value directly.
If anyone need that:
name: Build and Deploy
on: [push]
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
services:
turbo_cache:
image: fox1t/turborepo-remote-cache
env:
NODE_ENV: production
PORT: 3000
TURBO_TOKEN: XXX
STORAGE_PROVIDER: google-cloud-storage
STORAGE_PATH: <storage-path>
GCS_PROJECT_ID: <project-id>
GCS_CLIENT_EMAIL: <email>
GCS_PRIVATE_KEY: ${{ secrets.GCP_CREDENTIALS_PRIVATE_KEY }}
ports:
- 3000:3000
🐛 Bug Report
I tried use this repo with docker inside github actions, but I got error on during the artifact creation. I no have ideia what ocurring this error because this is generic.
I clone this repo locally for debug and this work normaly.
To Reproduce
Steps to reproduce the behavior:
Error on Github Actions
Turbo build Cache enabled
Cache storaged (from local test) in GCP Bucket
Again, I use console.error locally in this file to catch the error.
This occour because I use base64 credentials of gcp, so I change that to json and pass in env vars and works locally.
But some error ocurring in Github Actions and I can't access real error, exists another way to get erros on storage error? Or another exemple to use this solution with Github Actions?