Skip to content

Commit

Permalink
clone github repository for migration file access
Browse files Browse the repository at this point in the history
  • Loading branch information
james03160927 committed May 26, 2024
1 parent 48c7225 commit 89d975c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ steps:
- name: "gcr.io/cloud-builders/docker"
args: ["push", "us-central1-docker.pkg.dev/dreamboothy/registry-backend/registry-backend-image:$SHORT_SHA"]

# Step 3: Run database migrations for staging
# Clone the GitHub repository
- name: "gcr.io/cloud-builders/git"
args: [ "clone", "[email protected]:Comfy-Org/registry-backend.git", "." ]
dir: "/workspace"

# Run database migrations for staging
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
entrypoint: "bash"
args:
Expand All @@ -15,6 +20,7 @@ steps:
curl -sSL https://atlasgo.sh | sh
atlas migrate apply --dir "file://ent/migrate/migrations" --url $$STAGING_DB_CONNECTION_STRING
secretEnv: ['STAGING_DB_CONNECTION_STRING']
dir: "/workspace/registry-backend"

# Publish the release
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:458.0.1'
Expand Down

0 comments on commit 89d975c

Please sign in to comment.