From 8485f6dad99c83bc922b45caa04ccec8d89d825d Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Tue, 6 Feb 2024 17:12:24 -0500 Subject: [PATCH] ci(core): use -core from Central, do not rebuild locally --- .github/workflows/pr-ci.yml | 43 +------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index d1a1df65f..a0eef7e66 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -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 }} @@ -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: |