-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (46 loc) · 1.42 KB
/
build-images.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
name: Build Images
on:
workflow_dispatch:
inputs:
game_server_image:
description: 'Build game server image'
required: true
type: boolean
login_server_image:
description: 'Build login server image'
required: true
type: boolean
resources_server_image:
description: 'Build resources server image'
required: true
type: boolean
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 20
cache: maven
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build game server image
if: ${{ inputs.game_server_image }}
run: |
mvn package jib:build --no-transfer-progress --pl game-server -am
- name: Build login server image
if: ${{ inputs.login_server_image }}
run: |
mvn package jib:build --no-transfer-progress --pl login-server -am
- name: Build resources server image
if: ${{ inputs.resources_server_image }}
run: |
mvn package jib:build --no-transfer-progress --pl resources-server -am