36 lines
948 B
Markdown
36 lines
948 B
Markdown
# Devops Shortcuts
|
|
|
|
## Prerequisites
|
|
|
|
- Use fish for shell completion
|
|
- Use [gits](https://github.com/ucli-tools/gits) and [pal](https://github.com/scottyeager/pal) for quicker operations
|
|
|
|
## Devops Workflow Summary
|
|
|
|
- Create a branch
|
|
```
|
|
gits new development-refactoring
|
|
```
|
|
- Commit changes and push
|
|
- First time
|
|
```
|
|
git add . && pal /commit -y && git push --set-upstream origin development-refactoring
|
|
```
|
|
- After first time
|
|
```
|
|
git add . && pal /commit -y && git push
|
|
```
|
|
- Create PR and merge (e.g. base development branch is protected from direct push)
|
|
```
|
|
gits pr create --title 'Update' --base development && gits pr merge --pr-number $(gits pr-latest)
|
|
```
|
|
- Deploy Changed to Online App
|
|
```
|
|
gits pull development && make update-dev
|
|
```
|
|
- More info
|
|
- List all available commands
|
|
```
|
|
make help
|
|
```
|
|
- Read about [automated deployment](./automated-deployment.md) |