Skip to content

Commit

Permalink
ci(pr): build cryostat3 for preview
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Dec 21, 2023
1 parent c4b70f5 commit 78ecfa0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: enabled
contact_links:
- name: Cryostat Community Support
url: https://github.com/cryostatio/cryostat/discussions
url: https://github.com/cryostatio/cryostat3/discussions
about: Ask general questions about Cryostat here!
21 changes: 12 additions & 9 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
repository: cryostatio/cryostat
repository: cryostatio/cryostat3
- id: query-pom
name: Get properties from POM
run: |
Expand All @@ -82,7 +82,7 @@ jobs:
outputs:
core-version: ${{ steps.query-pom.outputs.core-version }}
image-version: ${{ steps.query-pom.outputs.image-version }}

build-deps:
runs-on: ubuntu-latest
needs: [get-pom-properties]
Expand All @@ -101,7 +101,7 @@ jobs:
with:
name: cryostat-core
path: /home/runner/.m2/repository/io/cryostat/cryostat-core/

build-image-and-push:
runs-on: ubuntu-latest
permissions:
Expand All @@ -114,7 +114,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
repository: cryostatio/cryostat
repository: cryostatio/cryostat3
submodules: true
fetch-depth: 0
- uses: actions/setup-java@v3
Expand All @@ -126,11 +126,14 @@ jobs:
with:
name: cryostat-core
path: /home/runner/.m2/repository/io/cryostat/cryostat-core/
- run: git submodule init
- run: git submodule update --remote
- run: cd web-client && git fetch origin pull/${{ env.PR_num }}/head:pr-${{ env.PR_num }} && git checkout pr-${{ env.PR_num }}
- run: cd ..
- run: mvn -B -U -Dmaven.test.skip=true clean package
- run: |
git submodule init
git submodule update --remote
pushd src/main/webui
git fetch origin pull/${{ env.PR_num }}/head:pr-${{ env.PR_num }}
git checkout pr-${{ env.PR_num }}
popd
mvn -B -U -Dmaven.test.skip=true clean package
- name: Tag cryostat image
run: podman tag cryostat ghcr.io/${{ github.repository_owner }}/cryostat-web:pr-${{ env.PR_num }}-${{ env.head_sha }}
- name: Push PR test image to ghcr.io
Expand Down

0 comments on commit 78ecfa0

Please sign in to comment.