Skip to content

Test Suite Container #286

Test Suite Container

Test Suite Container #286

Workflow file for this run

name: Test Suite Container
on:
workflow_dispatch:
schedule:
- cron: '20 3 * * *'
workflow_run:
workflows: [ halOP ]
types: [ completed ]
branches: [ main ]
concurrency:
group: test-suite-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-push:
name: Build and Push Container
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
env:
MVN: ./mvnw --show-version --batch-mode --no-transfer-progress
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5.7.0
with:
java-version: 25
distribution: temurin
cache: maven
- run: $MVN install
working-directory: bom
- run: $MVN package -P op,test-suite -DskipTests
- run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- run: podman --version
- uses: redhat-actions/podman-login@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build multi-arch image
run: |
podman manifest create quay.io/halconsole/hal-op:test-suite
podman build \
--platform linux/amd64 \
--manifest quay.io/halconsole/hal-op:test-suite \
--label maintainer=hpehl@redhat.com \
--label org.opencontainers.image.authors=hpehl@redhat.com \
--label org.opencontainers.image.description="HAL console on premise (test-suite)" \
--label org.opencontainers.image.licenses=Apache-2.0 \
--label org.opencontainers.image.source=https://github.com/hal/foundation \
--label org.opencontainers.image.title="HAL On Premise" \
--label org.opencontainers.image.url=https://hal.github.io \
--label org.opencontainers.image.vendor="Red Hat" \
-f op/test-suite/src/main/docker/Dockerfile.jvm \
op/test-suite
podman build \
--platform linux/arm64 \
--manifest quay.io/halconsole/hal-op:test-suite \
--label maintainer=hpehl@redhat.com \
--label org.opencontainers.image.authors=hpehl@redhat.com \
--label org.opencontainers.image.description="HAL console on premise (test-suite)" \
--label org.opencontainers.image.licenses=Apache-2.0 \
--label org.opencontainers.image.source=https://github.com/hal/foundation \
--label org.opencontainers.image.title="HAL On Premise" \
--label org.opencontainers.image.url=https://hal.github.io \
--label org.opencontainers.image.vendor="Red Hat" \
-f op/test-suite/src/main/docker/Dockerfile.jvm \
op/test-suite
- name: Push test-suite image
run: podman manifest push quay.io/halconsole/hal-op:test-suite