Last active
February 23, 2022 15:50
-
-
Save ibrunotome/9ca65e998fd92488ac2247adcf8c1526 to your computer and use it in GitHub Desktop.
Cloud Build example settings for a Laravel application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- name: 'gcr.io/cloud-builders/gsutil' | |
args: | |
- cp | |
- .env.testing | |
- .env | |
- name: 'docker/compose:1.23.1' | |
args: | |
- run | |
- app | |
- composer | |
- install | |
- --optimize-autoloader | |
- --no-interaction | |
- --no-ansi | |
- --no-progress | |
- --no-scripts | |
- --prefer-dist | |
- name: 'docker/compose:1.23.1' | |
args: | |
- run | |
- app | |
- vendor/bin/phpunit | |
- --no-coverage | |
- name: 'gcr.io/cloud-builders/gsutil' | |
args: | |
- cp | |
- ${_APP_YAML_CONFIG} | |
- app.yaml | |
- name: 'gcr.io/cloud-builders/gcloud' | |
args: | |
- app | |
- deploy | |
- --no-promote | |
timeout: '600s' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Github actions is also an easy and free option to run your continuous integration workflow, example: