https://github.com/fredlackey/node-codebuild-example
Sample scripts I use within the AWS (EC2, CodeBuild, etc.).
https://github.com/fredlackey/node-codebuild-example
Last synced: 3 months ago
JSON representation
Sample scripts I use within the AWS (EC2, CodeBuild, etc.).
- Host: GitHub
- URL: https://github.com/fredlackey/node-codebuild-example
- Owner: FredLackey
- License: apache-2.0
- Created: 2020-09-21T14:42:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T15:52:36.000Z (over 5 years ago)
- Last Synced: 2025-01-24T10:30:39.938Z (11 months ago)
- Language: Shell
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-codebuild-example
Sample scripts I use within the AWS (EC2, CodeBuild, etc.).
## Overview
CodeBuild uses `buildspec.yml` to drive everything and ultimately calls `npm run push`. This is a simply bash script which pulls in the `package.json` file and uses the `.name` and `.version` properties to tag and push the image. CodePipeline triggers this build whenever the `master` branch in my project is updated. The end result is that the project is autmatically tagged with the current version number and pushed into the private registry for deployment within ECS/EC2.
### Build vs Push
Admitedly, the names of these two scripts are a bit misleading. I've been thinking about using `build-local.sh` and `build-aws.sh` but that doesn't inclue the word "push" and including it would make the name longer. Ugh! Basically, `build.sh` is used for building locally, for use with Docker, and `push.sh` is meant to build *and push* into the private registry within AWS.
## Contact Info
Feel free to email me with any questions:
**Fred Lackey**
**[http://fredlackey.com](http://www.fredlackey.com)**
**[fred.lackey@gmail.com](mailto:fred.lackey@gmail.com)**