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

Commit

Permalink
Add copyright and remove argo app param
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Carino <carino_jade@yahoo.co.uk>
  • Loading branch information
jadecarino committed Aug 30, 2024
1 parent 0b9a19e commit f99dc2d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#
# Copyright contributors to the Galasa project
#
# SPDX-License-Identifier: EPL-2.0
#
name: Main build

on:
Expand Down Expand Up @@ -26,7 +31,6 @@ env:
REGISTRY: ghcr.io
NAMESPACE: galasa-dev
BRANCH: ${{ github.ref_name }}
ARGO_APP_BRANCH: gh # TODO: remove this parameter and just use env.BRANCH once we update development.galasa.dev/main with these workflows.

jobs:
log-github-ref:
Expand Down Expand Up @@ -71,7 +75,8 @@ jobs:
run: |
set -o pipefail
gradle -b galasa-extensions-parent/build.gradle check publish --info \
-PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/framework \
--no-daemon --console plain \
-PsourceMaven=https://development.galasa.dev/${{ env.BRANCH }}/maven-repo/framework \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo \
-PjacocoEnabled=true \
Expand All @@ -88,7 +93,8 @@ jobs:
run: |
set -o pipefail
gradle -b galasa-extensions-parent/build.gradle check publish --info \
-PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/framework \
--no-daemon --console plain \
-PsourceMaven=https://development.galasa.dev/${{ env.BRANCH }}/maven-repo/framework \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo \
-PjacocoEnabled=${{ inputs.jacocoEnabled }} \
Expand Down Expand Up @@ -131,13 +137,13 @@ jobs:
env:
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
run: |
docker run --env ARGOCD_AUTH_TOKEN=${{ env.ARGOCD_AUTH_TOKEN }} --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/argocdcli:main app actions run ${{ env.ARGO_APP_BRANCH }}-maven-repos restart --kind Deployment --resource-name extensions-${{ env.ARGO_APP_BRANCH }} --server argocd.galasa.dev
docker run --env ARGOCD_AUTH_TOKEN=${{ env.ARGOCD_AUTH_TOKEN }} --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/argocdcli:main app actions run ${{ env.BRANCH }}-maven-repos restart --kind Deployment --resource-name extensions-${{ env.BRANCH }} --server argocd.galasa.dev
- name: Wait for app health in ArgoCD
env:
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
run: |
docker run --env ARGOCD_AUTH_TOKEN=${{ env.ARGOCD_AUTH_TOKEN }} --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/argocdcli:main app wait ${{ env.ARGO_APP_BRANCH }}-maven-repos --resource apps:Deployment:extensions-${{ env.ARGO_APP_BRANCH }} --health --server argocd.galasa.dev
docker run --env ARGOCD_AUTH_TOKEN=${{ env.ARGOCD_AUTH_TOKEN }} --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/argocdcli:main app wait ${{ env.BRANCH }}-maven-repos --resource apps:Deployment:extensions-${{ env.BRANCH }} --health --server argocd.galasa.dev
trigger-managers-workflow:
name: Trigger Managers workflow
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#
# Copyright contributors to the Galasa project
#
# SPDX-License-Identifier: EPL-2.0
#
name: PR build

on:
Expand Down Expand Up @@ -34,7 +39,8 @@ jobs:
- name: Build Extensions source code with gradle
run: |
gradle -b galasa-extensions-parent/build.gradle check publish --info \
-PsourceMaven=https://development.galasa.dev/gh/maven-repo/framework \
--no-daemon --console plain \
-PsourceMaven=https://development.galasa.dev/main/maven-repo/framework \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo
Expand Down

0 comments on commit f99dc2d

Please sign in to comment.