Skip to content

Instantly share code, notes, and snippets.

@ak03120
ak03120 / pipeline.sh
Created July 15, 2025 06:15
GitLabのパイプラインを開始/停止するスクリプト
#!/bin/bash
if [ $# -ne 1 ]; then
echo "使用方法: $0 <start|stop>"
exit 1
fi
ACTION=$1
if [[ "$ACTION" != "start" && "$ACTION" != "stop" ]]; then
echo "エラー: 無効なアクション '$ACTION' です。'start' または 'stop' を指定してください。"
exit 1