-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (53 loc) · 1.65 KB
/
container.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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@v3
- name: Checkout Console
id: checkout-console
uses: actions/checkout@v3
with:
repository: hal/halos-console
path: console
- name: Set up JDK
id: setup-jdk
uses: actions/setup-java@v3
with:
java-version: 19
distribution: temurin
cache: maven
- name: Setup Node
id: setup-node
uses: actions/setup-node@v3
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@v2
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