Skip to content

Commit

Permalink
Merge pull request #276 from galasa-dev/iss1982
Browse files Browse the repository at this point in the history
Iss1982 - Add copyright and remove argo app param
  • Loading branch information
jadecarino authored Aug 30, 2024
2 parents d54ae5e + 20a936e commit ad46e36
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build.yml
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 All @@ -9,8 +14,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 @@ -39,7 +42,8 @@ jobs:
run : |
set -o pipefail
gradle -b build.gradle installJarsIntoTemplates --info \
-PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/maven \
--no-daemon --console plain \
-PsourceMaven=https://development.galasa.dev/${{ env.BRANCH }}/maven-repo/maven \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo 2>&1 | tee build.log
Expand Down Expand Up @@ -95,11 +99,6 @@ jobs:
run : |
./test-galasactl-local.sh --buildTool maven
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.9

- name: Run local test script with Gradle
run : |
./test-galasactl-local.sh --buildTool gradle
Expand Down Expand Up @@ -177,13 +176,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 }}-cli restart --kind Deployment --resource-name cli-${{ 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 }}-cli restart --kind Deployment --resource-name cli-${{ env.BRANCH }} --server argocd.galasa.dev
- name: Wait for application 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 }}-cli --resource apps:Deployment:cli-${{ 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 }}-cli --resource apps:Deployment:cli-${{ env.BRANCH }} --health --server argocd.galasa.dev
trigger-isolated-workflow:
name: Trigger Isolated workflow
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/pr-build.yml
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 @@ -28,7 +33,8 @@ jobs:
run : |
set -o pipefail
gradle -b build.gradle installJarsIntoTemplates --info \
-PsourceMaven=https://development.galasa.dev/gh/maven-repo/maven \
--no-daemon --console plain \
-PsourceMaven=https://development.galasa.dev/main/maven-repo/maven \
-PcentralMaven=https://repo.maven.apache.org/maven2/ \
-PtargetMaven=${{ github.workspace }}/repo 2>&1 | tee build.log
Expand Down Expand Up @@ -84,11 +90,6 @@ jobs:
run : |
./test-galasactl-local.sh --buildTool maven
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.9

- name: Run local test script with Gradle
run : |
./test-galasactl-local.sh --buildTool gradle
Expand Down

0 comments on commit ad46e36

Please sign in to comment.