Skip to content

Container

Container #266

Workflow file for this run

name: Container
on:
workflow_run:
workflows: [Verify Codebase]
types: [completed]
jobs:
container:
name: Container
runs-on: ubuntu-latest
env:
MVN: ./mvnw --show-version --batch-mode --no-transfer-progress
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- run: $MVN install -DskipTests -P op,prod,native
- uses: redhat-actions/podman-login@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
tags: quay.io/halconsole/halop:latest
platforms: linux/amd64,linux/arm64
labels: |
[email protected]
[email protected]
org.opencontainers.image.description=HAL console on premise
org.opencontainers.image.licenses=Apache-2.0
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.source=https://github.com/hal/foundation
org.opencontainers.image.title=HAL On Premise
org.opencontainers.image.url=https://hal.github.io
org.opencontainers.image.vendor=Red Hat
containerfiles: op/standalone/src/main/docker/Dockerfile.native-micro
context: op/standalone
- uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}