#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
PASS=$($SCRIPT_DIR/get-argocd-secret)
ARGOCD_HOST=$($SCRIPT_DIR/get-argocd-host)
echo $PASS $ARGOCD_HOST
argocd login $ARGOCD_HOST --username admin --password $PASS --insecure # Add --insecure if you're using a self-signed cert or port-forwarding
