Skip to content

Commit

Permalink
ci(core): use -core from Central, do not rebuild locally
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Feb 6, 2024
1 parent 5a1de2f commit 8485f6d
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,49 +65,12 @@ jobs:
})
return { num: result.data.number, head_sha: result.data.head.sha }
get-pom-properties:
runs-on: ubuntu-latest
needs: [checkout-branch]
steps:
- uses: actions/checkout@v2
with:
repository: cryostatio/cryostat3
- id: query-pom
name: Get properties from POM
run: |
CORE_VERSION="$(mvn help:evaluate -Dexpression=io.cryostat.core.version -q -DforceStdout)"
echo "core-version=v$CORE_VERSION" >> $GITHUB_OUTPUT
IMAGE_VERSION="$(mvn validate help:evaluate -Dexpression=cryostat.imageVersionLower -q -DforceStdout)"
echo "image-version=$IMAGE_VERSION" >> $GITHUB_OUTPUT
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]
steps:
- uses: actions/checkout@v3
with:
repository: cryostatio/cryostat-core
ref: ${{ needs.get-pom-properties.outputs.core-version }}
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- run: mvn -B -U -DskipTests=true clean install
- uses: actions/upload-artifact@v3
with:
name: cryostat-core
path: /home/runner/.m2/repository/io/cryostat/cryostat-core/

build-image-and-push:
runs-on: ubuntu-latest
permissions:
packages: write
pull-requests: write
needs: [get-pom-properties, build-deps, checkout-branch]
needs: [checkout-branch]
env:
PR_num: ${{ needs.checkout-branch.outputs.PR_num }}
head_sha: ${{ needs.checkout-branch.outputs.PR_head_sha }}
Expand All @@ -122,10 +85,6 @@ jobs:
java-version: '17'
distribution: 'adopt'
cache: maven
- uses: actions/download-artifact@v3
with:
name: cryostat-core
path: /home/runner/.m2/repository/io/cryostat/cryostat-core/
- name: Build Cryostat application image
id: build-cryostat-image
run: |
Expand Down

0 comments on commit 8485f6d

Please sign in to comment.