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"