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

Commit

Permalink
Merge pull request #92 from galasa-dev/jade-copyright
Browse files Browse the repository at this point in the history
Iss1982 - Add copyright header to workflows
  • Loading branch information
jadecarino authored Aug 30, 2024
2 parents b1f3820 + 151bf41 commit e91480e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
14 changes: 9 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 @@ -102,7 +106,7 @@ jobs:
if: github.event_name == 'push'
run : |
set -o pipefail
mvn -X deploy \
mvn deploy -X \
-Dgalasa.source.repo=https://repo.maven.apache.org/maven2/ \
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \
-Dgalasa.release.repo=file:${{ github.workspace }}/repo \
Expand All @@ -115,7 +119,7 @@ jobs:
if: github.event_name == 'workflow_dispatch' # Use the input values provided by the workflow dispatch.
run: |
set -o pipefail
mvn -X deploy \
mvn deploy -X \
-Dgalasa.source.repo=https://repo.maven.apache.org/maven2/ \
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \
-Dgalasa.release.repo=file:${{ github.workspace }}/repo \
Expand Down Expand Up @@ -164,14 +168,14 @@ 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 wrapping-${{ 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 wrapping-${{ env.BRANCH }} --server argocd.galasa.dev
# Wait for the application to show as healthy in ArgoCD
- 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:wrapping-${{ 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:wrapping-${{ env.BRANCH }} --health --server argocd.galasa.dev
trigger-gradle-workflow:
name: Trigger Gradle workflow
Expand Down
9 changes: 7 additions & 2 deletions .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 @@ -74,13 +79,13 @@ jobs:
- name: Building Wrapping source code
run: |
mvn -X deploy \
mvn deploy -X \
-Dgpg.skip=true \
-Dgalasa.source.repo=https://repo.maven.apache.org/maven2/ \
-Dgalasa.central.repo=https://repo.maven.apache.org/maven2/ \
-Dgalasa.release.repo=file:${{ github.workspace }}/repo \
--batch-mode --errors --fail-at-end \
--settings /home/runner/work/gpg/settings.xml
--settings /home/runner/work/gpg/settings.xml
- name: Extract metadata for Wrapping image
id: metadata
Expand Down

0 comments on commit e91480e

Please sign in to comment.