Skip to content

Instantly share code, notes, and snippets.

View abu-raihan-ddclbd's full-sized avatar
:octocat:

Md. Abu Raihan Srabon abu-raihan-ddclbd

:octocat:
  • DDCL BD
  • Dhaka
  • 06:39 (UTC +06:00)
View GitHub Profile
name: Build, Push, and Deploy Docker Image
on:
push:
branches:
- staging
jobs:
build-push-deploy:
runs-on: ubuntu-latest
#!/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"
#!/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