Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
add argocd steps
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Carino <[email protected]>
  • Loading branch information
jadecarino committed Jul 23, 2024
1 parent 7d80d70 commit 7cd8e69
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Main build

on:
workflow_dispatch:
push:
# push:
pull_request:
branches: [main]

env:
Expand Down Expand Up @@ -41,7 +42,7 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
run: |
gradle check publish --scan \
gradle check publish \
-PsourceMaven=https://repo.maven.apache.org/maven2/ \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo \
Expand Down Expand Up @@ -74,3 +75,16 @@ jobs:
build-args: |
dockerRepository=harbor.galasa.dev
tag=${{ env.BRANCH }}
# Login to ArgoCD
# Recycle the application managed by ArgoCD which deploys the development Maven registry
# This will supply it with the latest artefacts
- name: Login to ArgoCD and recycle application
run: |
docker run --rm -v ghcr.io/galasa-dev/argocdcli:main "argocd login argocd.galasa.dev --auth-token ${{ secrets.ARGOCD_TOKEN }} --grpc-web; argocd app actions run main-maven-repos restart --kind Deployment --resource-name gradle-main --server argocd.galasa.dev"
# Recycle the application managed by ArgoCD which deploys the development Maven registry
# This will supply it with the latest artefacts
# - name: Recycle ArgoCD application
# run: |
# argocd app actions run main-maven-repos restart --kind Deployment --resource-name gradle-main --server argocd.galasa.dev

0 comments on commit 7cd8e69

Please sign in to comment.