Skip to content

Merge pull request #116 from hal/dependabot/maven/version.quarkus-3.15.1 #237

Merge pull request #116 from hal/dependabot/maven/version.quarkus-3.15.1

Merge pull request #116 from hal/dependabot/maven/version.quarkus-3.15.1 #237

Workflow file for this run

name: Build Container
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
verify:
name: Build Container
runs-on: ubuntu-latest
env:
MVN: ./mvnw --show-version --batch-mode
steps:
- name: Checkout Proxy
id: checkout-proxy
uses: actions/checkout@v4
- name: Checkout Console
id: checkout-console
uses: actions/checkout@v4
with:
repository: hal/halos-console
path: console
- name: Set up JDK
id: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 19
distribution: temurin
cache: maven
- name: Setup Node
id: setup-node
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
cache-dependency-path: console/package-lock.json
- name: Login to Quay.io
id: login-to-quay-io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build Console
id: build-console
run: |
npm install
npx tsc
npx vite build --outDir ../proxy/src/main/resources/META-INF/resources
working-directory: ./console
- name: Build Container
id: build-container
run: $MVN package -Dquarkus.container-image.build=true -Dquarkus.container-image.image=quay.io/halconsole/halos:latest -Dquarkus.container-image.registry=quay.io -Dquarkus.container-image.push=true '-Dquarkus.jib.labels."org.opencontainers.image.revision"='$GITHUB_SHA