https://github.com/alvarowolfx/gcloud-ci-cd-demo
CI/CD Demo used on some personal talks
https://github.com/alvarowolfx/gcloud-ci-cd-demo
Last synced: 4 months ago
JSON representation
CI/CD Demo used on some personal talks
- Host: GitHub
- URL: https://github.com/alvarowolfx/gcloud-ci-cd-demo
- Owner: alvarowolfx
- Created: 2020-08-12T22:59:19.000Z (over 4 years ago)
- Default Branch: development
- Last Pushed: 2021-06-17T22:50:42.000Z (almost 4 years ago)
- Last Synced: 2024-06-19T10:13:54.597Z (10 months ago)
- Language: Go
- Homepage: https://www.slideshare.net/alvarowolfx/ambiente-de-cicd-com-google-cloud
- Size: 18.6 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CI/CD Demo with Cloud Build, Cloud Run and Github Actions
## Triggers
- [Cloud Build] Push to development branch ([cloudbuild.dev.yaml](./cloudbuild.dev.yaml))
- Run tests
- Build docker image with commit hash
- Push docker image
- Deploy cloud run to {service-name}-development- [Cloud Build] Push tag to master branch ([cloudbuild.yaml](./cloudbuild.yaml))
- Run tests
- Build docker image with tag name
- Push docker image
- Deploy cloud run to {service-name}- [Cloud Build] Create/Update pull request ([cloudbuild.pr.yaml](./cloudbuild.pr.yaml))
- Run tests
- Build docker image with commit hash
- Push docker image
- Deploy Cloud run service {service-name}-{pull-request-branch}- [Github Actions] Close pull request ([.github/worksflows/clean.yaml](./.github/worksflows/clean.yaml))
- Delete Cloud run service {service-name}-{pull-request-branch}### References
- https://medium.com/swlh/how-to-ci-cd-on-google-cloud-platform-1e631cded335
- https://cloud.google.com/devops
- https://github.com/GoogleCloudPlatform/github-actions
- https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions
- https://cloud.google.com/cloud-build/docs/configuring-builds/substitute-variable-values
- https://cloud.google.com/cloud-build/docs/building/build-go