forked from FindFirst-Development/FindFirst-core
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.2 KB
/
build.yml
File metadata and controls
47 lines (39 loc) · 1.2 KB
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
name: Build
on:
push:
branches:
- main
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
env:
REGISTRY_OWNER: ${{ github.repository_owner }}
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Setup Java 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "temurin"
- name: Build and Push Server Container
run: |
make build_server REGISTRY_OWNER=$REGISTRY_OWNER
docker push ghcr.io/$REGISTRY_OWNER/findfirst-server:latest
- name: Build and Push Screenshot Container
run: |
make build_screenshot REGISTRY_OWNER=$REGISTRY_OWNER
docker push ghcr.io/$REGISTRY_OWNER/findfirst-screenshot:latest
- name: Build and Push Frontend Container
run: |
make build_frontend REGISTRY_OWNER=$REGISTRY_OWNER
docker push ghcr.io/$REGISTRY_OWNER/findfirst-frontend:latest