Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Mar 24, 2024
1 parent 8ad5e54 commit 5cc1df6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:
key: ${{ runner.os }}-node-modules-yarn-v1-${{ hashFiles('yarn.lock') }}

#############################################################################
# Export production
# Gcloud Setup
# Populate service account credentials to file
# Authenticate to google servers
# Initialize gcloud cli
#############################################################################
- name: Setup Credentials
id: service-account
Expand All @@ -60,12 +63,14 @@ jobs:
with:
version: ">= 363.0.0"
# TODO - refactor actions - 1 to create pr, then preview based on pr
#############################################################################
# Export production
#############################################################################

# Export production and rename to match dev configuration (production-local)
- name: Import production data locally
run: |
echo "STRAPI_READONLY_TOKEN=${{secrets.STRAPI_READONLY_TOKEN}}" > config/docker.local.env
gcloud login
yarn scripts strapi export --environment docker --ci
cp config/docker.local.env config/development.local.env
cp data/db/sami-production.db data/db/sami-dev.db
Expand Down

0 comments on commit 5cc1df6

Please sign in to comment.