-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
I can't get the migrate
step to work!
It successfully:
...
Step #2 - "Migrate": Pulling image: gcr.io/google-appengine/exec-wrapper
Step #2 - "Migrate": Using default tag: latest
Step #2 - "Migrate": latest: Pulling from google-appengine/exec-wrapper
...
Step #2 - "Migrate": Digest: sha256:xxxx
Step #2 - "Migrate": Status: Downloaded newer image for gcr.io/google-appengine/exec-wrapper:latest
Step #2 - "Migrate": gcr.io/google-appengine/exec-wrapper:latest
Step #2 - "Migrate":
Step #2 - "Migrate": ---------- INSTALL IMAGE ----------
Step #2 - "Migrate": latest: Pulling from xxx/appengine/default.xxxx
...
Step #2 - "Migrate": Digest: xxx
Step #2 - "Migrate": Status: Downloaded newer image for us.gcr.io/xxx/appengine/default.xxx
Step #2 - "Migrate": us.gcr.io/xxx/appengine/default.xxx
Step #2 - "Migrate":
Step #2 - "Migrate": ---------- EXECUTE COMMAND ----------
Step #2 - "Migrate": php /workspace/artisan migrate --force
Then it stays stuck at "Execute Command" forever.
Note that I'm not interested in the cloud proxy part. Just being able to run the php artisan migrate --force
command on the appengine instance.
What am I doing wrong?
- id: Deploy
name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:slim'
entrypoint: 'gcloud'
args:
[
'app',
'deploy',
'-q',
'--promote',
'-v=$BUILD_ID',
'--project=$PROJECT_ID'
]
- id: Migrate
name: 'gcr.io/google-appengine/exec-wrapper'
entrypoint: 'bash'
args:
[
'/buildstep/execute.sh',
'-i', 'us.gcr.io/${PROJECT_ID}/appengine/default.${BUILD_ID}:latest',
'-e', 'APP_KEY=$$APP_KEY',
'-e', 'DB_CONNECTION=mysql',
'-e', 'DB_HOST=$$DB_HOST',
'-e', 'DB_DATABASE=xxx',
'-e', 'DB_PORT=3306',
'-e', 'DB_USERNAME=$$DB_USERNAME',
'-e', 'DB_PASSWORD=$$DB_PASSWORD',
'--', 'php /workspace/artisan migrate --force'
]
secretEnv: ['APP_KEY', 'DB_HOST', 'DB_USERNAME', 'DB_PASSWORD']
waitFor:
- Deploy
Metadata
Metadata
Assignees
Labels
No labels