ISPN-15555 Update com.github.ben-manes.caffeine:caffeine to 3.1.8 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Operator Upgrade Tests | |
on: | |
push: | |
branches: | |
- main | |
- '*.0.x' | |
pull_request: | |
branches: | |
- main | |
- '*.0.x' | |
jobs: | |
image: | |
runs-on: ubuntu-latest | |
steps: | |
- if: ${{ github.event_name != 'pull_request' }} | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref_name }} | |
repository: infinispan/infinispan-images | |
- if: ${{ github.event_name == 'pull_request' }} | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.base_ref }} | |
repository: infinispan/infinispan-images | |
- uses: actions/checkout@v4 | |
with: | |
path: server | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build Infinispan | |
working-directory: server | |
run: | | |
./mvnw -s maven-settings.xml install -DskipTests -am -pl server/runtime | |
SERVER_VERSION=$(./mvnw -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) | |
cd server/runtime/target | |
zip -r ${GITHUB_WORKSPACE}/server.zip infinispan-server-${SERVER_VERSION} | |
- name: Install CEKit | |
uses: cekit/[email protected] | |
- name: Create Dockerfile | |
run: | | |
SERVER_OVERRIDE="{\"artifacts\":[{\"name\":\"server\",\"path\":\"${GITHUB_WORKSPACE}/server.zip\"}]}" | |
cekit -v --descriptor server-openjdk.yaml build --overrides '{'version': '${{ github.sha }}'}' --overrides ${SERVER_OVERRIDE} --dry-run docker | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Image | |
run: | | |
cat target/image/Dockerfile | |
docker buildx build --load -t localhost:5001/server:${{ github.sha }} target/image | |
docker save localhost:5001/server:${{ github.sha }} > /tmp/operand-image.tar | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: operand-image | |
path: /tmp/operand-image.tar | |
tests: | |
needs: image | |
uses: infinispan/infinispan-operator/.github/workflows/upgrade_tests.yaml@main | |
with: | |
operand: localhost:5001/server:${{ github.sha }} | |
operandArtifact: operand-image | |
ref: 2.3.x | |
repository: infinispan/infinispan-operator |