cloudbuild ruby googl code example
Example 1: cloudbuild ruby googl
steps:
- name: "gcr.io/cloud-builders/docker"
entrypoint: "bash"
args:
- "-c"
- |
docker pull gcr.io/$PROJECT_ID/myapp:testing || exit 0
- name: "gcr.io/cloud-builders/docker"
args:
[
"build",
"--cache-from",
"gcr.io/$PROJECT_ID/myapp:testing",
"-t",
"gcr.io/$PROJECT_ID/myapp:testing",
".",
]
- name: "gcr.io/$PROJECT_ID/docker-compose"
args: ["--file", "docker-compose-ci.yml", "run", "rspec"]
images:
- "gcr.io/$PROJECT_ID/myapp:testing"
Example 2: cloudbuild ruby googl
#!/bin/sh
bundle exec rake db:test:prepare && bundle exec rspec spec