This file contains hidden or 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
| name: Build, Push, and Deploy Docker Image | |
| on: | |
| push: | |
| branches: | |
| - staging | |
| jobs: | |
| build-push-deploy: | |
| runs-on: ubuntu-latest |
This file contains hidden or 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
| #!/bin/bash | |
| # Step 1: Prompt the user to optionally provide a password upfront | |
| read -sp "Enter password (press Enter to skip if you want to input manually during execution): " PASSWORD | |
| echo "" | |
| # Define servers | |
| servers=( | |
| "172.16.51.40" | |
| "172.16.51.86" |
This file contains hidden or 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
| #!/bin/bash | |
| # Set variables | |
| PHYSICAL_DEVICE="/dev/sda" # Change this to your actual device | |
| VG_NAME="vg_nfs" | |
| LV_NAME="lv_nfs" | |
| MOUNT_POINT="/mnt/nfs" | |
| LV_SIZE="100G" # Specify the size for the logical volume | |
| # Function to check for errors |