-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 937 Bytes
/
docker.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
name: docker
on:
push:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code.
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
cache: maven
- name: Compile the code.
run: cd server && mvn clean package && cd ..
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build & Push image
run: docker buildx build --platform=linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x --tag ghcr.io/casterlabs/dbohttp:latest --push .