Skip to content

Bump org.codehaus.mojo:versions-maven-plugin from 2.16.2 to 2.18.0 #4

Bump org.codehaus.mojo:versions-maven-plugin from 2.16.2 to 2.18.0

Bump org.codehaus.mojo:versions-maven-plugin from 2.16.2 to 2.18.0 #4

name: Operator Upgrade Tests
on:
push:
branches:
- main
- '*.0.x'
pull_request:
branches:
- main
- '*.0.x'
concurrency:
# Cancel jobs same head_branch same repo, works
# both for pull_request and push
group: >
${{ github.workflow }}-${{ github.event.repository.full_name }}-
${{ github.event.pull_request.head.ref || github.event.push.ref }}
cancel-in-progress: true
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: ./server/.github/actions/setup-java
- name: Build Infinispan
working-directory: server
run: |
./mvnw 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/actions-setup-cekit@v1.1.7
- 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/test_upgrades.yml@main
with:
operand: localhost:5001/server:${{ github.sha }}
operandArtifact: operand-image
ref: main
repository: infinispan/infinispan-operator