Remove unnecessary rollout-restart.sh script

- Delete rollout-restart.sh as it was just a simple oc command
- Update README.md to show direct oc rollout restart command
- Simplify workflow: git push -> GitHub Actions -> oc rollout restart
- Keep only essential scripts: deploy-complete.sh, build-and-push.sh, undeploy-complete.sh
This commit is contained in:
2025-10-04 12:00:30 -03:00
parent 92834cc8aa
commit 067dfaa322
2 changed files with 13 additions and 51 deletions

View File

@@ -23,22 +23,22 @@ This directory contains scripts for building, deploying, and updating the OpenSh
./scripts/deploy-complete.sh
```
### 2. `rollout-restart.sh` - Updates (Recommended)
### 2. Updates (Recommended)
**Purpose**: Update existing deployment with new image
**When to use**: After code changes and GitHub Actions has built new image
**What it does**:
- Restarts deployment to pull new image
- Waits for rollout completion
- Checks pod status and logs
- Shows application URL
**Usage**:
**Simple command**:
```bash
./scripts/rollout-restart.sh
oc rollout restart deployment/resource-governance -n resource-governance
```
### 3. `build-and-push.sh` - Manual Build
**With status check**:
```bash
oc rollout restart deployment/resource-governance -n resource-governance
oc rollout status deployment/resource-governance -n resource-governance
```
### 2. `build-and-push.sh` - Manual Build
**Purpose**: Build and push image manually (when GitHub Actions is not available)
**When to use**: Manual builds or when GitHub Actions is not working
@@ -56,7 +56,7 @@ podman login quay.io
./scripts/build-and-push.sh
```
### 4. `undeploy-complete.sh` - Cleanup
### 3. `undeploy-complete.sh` - Cleanup
**Purpose**: Remove all resources
**When to use**: When you want to completely remove the application
@@ -71,7 +71,7 @@ echo 'yes' | ./scripts/undeploy-complete.sh
1. Make code changes
2. `git add . && git commit -m "Your changes" && git push`
3. Wait for GitHub Actions to build new image
4. `./scripts/rollout-restart.sh`
4. `oc rollout restart deployment/resource-governance -n resource-governance`
### For Initial Deployment:
1. `./scripts/deploy-complete.sh`
@@ -79,7 +79,7 @@ echo 'yes' | ./scripts/undeploy-complete.sh
### For Manual Build (if needed):
1. `podman login quay.io`
2. `./scripts/build-and-push.sh`
3. `./scripts/rollout-restart.sh`
3. `oc rollout restart deployment/resource-governance -n resource-governance`
## Security Notes