Skip to content

Commit

Permalink
review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Oct 5, 2023
1 parent e1000d3 commit 281fd97
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI build

concurrency:
group: ci-${{ github.run_id }}
cancel-in-progress: true

on:
push:
branches:
Expand All @@ -14,6 +18,9 @@ on:
- v[0-9]+.[0-9]+
- cryostat-v[0-9]+.[0-9]+

env:
TEST_VERSION: 2.24.0-SNAPSHOT

jobs:
build-core:
runs-on: ubuntu-latest
Expand All @@ -30,7 +37,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: cryostat-core
path: /home/runner/work/cryostat-core/cryostat-core/target/cryostat-core-2.24.0-SNAPSHOT.jar
path: /home/runner/work/cryostat-core/cryostat-core/target/cryostat-core-${{ TEST_VERSION }}.jar
- uses: skjolber/maven-cache-github-action@v1
with:
step: save
Expand Down Expand Up @@ -84,6 +91,7 @@ jobs:

cryostat-test:
runs-on: ubuntu-latest
needs: [push-to-ghcr]
steps:
- name: Install xpath
run: |
Expand All @@ -97,7 +105,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
java-version: '17' 02W
java-version: '17'
distribution: 'temurin'
- name: Pull cryostat image
run: podman pull ghcr.io/${{ github.repository_owner }}/cryostat-core:pr-${{ github.event.number }}-${{ github.event.pull_request.head.sha }}-linux-${{ matrix.arch }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/cryostat-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
description: the Cryostat application version that will be built
value: ${{ jobs.get-pom-properties.outputs.image-version }}

env:
CURRENT_VERSION: "2.23.0"
TEST_VERSION: 2.24.0-SNAPSHOT

jobs:
get-pom-properties:
runs-on: ubuntu-latest
Expand All @@ -23,7 +27,7 @@ jobs:
ref: main
- uses: Mudlet/xmlstarlet-action@master
with:
args: ed -P -L -u '//_:properties[_:io.cryostat.core.version="2.23.0"]/_:io.cryostat.core.version' -v "2.24.0-SNAPSHOT" pom.xml
args: ed -P -L -u '//_:properties[_:io.cryostat.core.version=${{ CURRENT_VERSION }}]/_:io.cryostat.core.version' -v ${{ TEST_VERSION }} pom.xml
- id: query-pom
name: Get properties from POM
# Query POM for image version and save as output parameter
Expand Down

0 comments on commit 281fd97

Please sign in to comment.