Skip to content

Argo CD Upgrade/Install #10

Argo CD Upgrade/Install

Argo CD Upgrade/Install #10

name: "Argo CD Upgrade/Install"
on:
workflow_dispatch:
inputs:
target-environment:
type: choice
description: Target environment for Argo CD
options:
- KUBEPI
- GKE
loft-cli-version:
description: 'Loft CLI version to use'
default: "v3.2.4"
env:
LOFT_CLI_VERSION: ${{ inputs.loft-cli-version || 'v3.2.4' }}
jobs:
upgrade-install:
name: upgrade-install-argocd
environment:
name: ${{ inputs.target-environment }}
runs-on: arc-runner-set
permissions:
id-token: write
contents: read
steps:
- id: checkout
uses: actions/checkout@v4
- id: install-loft-cli
uses: loft-sh/setup-loft@v2
with:
version: ${{ env.LOFT_CLI_VERSION }}
url: ${{ vars.LOFT_URL }}
insecure: true
# Specify your Loft access key here
access-key: ${{ secrets.LOFT_ACCESS_KEY }}
- id: install-helm
run: |
sudo apt-get update
sudo apt-get install curl
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
sudo ./get_helm.sh
- id: argocd-upgrade-install
run: |
loft use cluster loft-cluster
helm repo add argo https://argoproj.github.io/argo-helm
helm repo update
helm upgrade --install argocd argo/argo-cd \
-n argocd --create-namespace --version 5.42.2 --wait \
--set configs.secret.githubSecret=${{ secrets.ARGOCD_GITHUB_WEBHOOK_SECRET }} \
--set ingress.hosts[0].host=argocd.${{ vars.BASE_HOST }} \
--set ingress.tls[0].hosts[0]=argocd.${{ vars.BASE_HOST }} \
--values ./argo-cd/values.yaml