Skip to content

Commit e58591a

Browse files
committed
update github actions to actually build the image
1 parent dec612b commit e58591a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,23 @@ jobs:
107107
type=semver,pattern={{major}}
108108
type=sha,prefix=
109109
110+
- name: Docker Meta Distroless
111+
id: meta-distroless
112+
uses: docker/metadata-action@v5
113+
with:
114+
images: |
115+
ghcr.io/${{ github.repository }}
116+
${{ env.DOCKER_IMAGE }}
117+
flavor: |
118+
suffix=-distroless,onlatest=true
119+
tags: |
120+
type=ref,event=branch
121+
type=ref,event=pr
122+
type=semver,pattern={{version}}
123+
type=semver,pattern={{major}}.{{minor}}
124+
type=semver,pattern={{major}}
125+
type=sha,prefix=
126+
110127
- name: Set up QEMU
111128
uses: docker/setup-qemu-action@v3
112129

@@ -147,3 +164,13 @@ jobs:
147164
push: true
148165
tags: ${{ steps.meta-alpine.outputs.tags }}
149166
labels: ${{ steps.meta-alpine.outputs.labels }}
167+
168+
- name: Build Distroless and Push
169+
uses: docker/build-push-action@v5
170+
with:
171+
file: LavalinkServer/docker/distroless.Dockerfile
172+
context: .
173+
platforms: linux/amd64,linux/arm64/v8
174+
push: true
175+
tags: ${{ steps.meta-distoless.outputs.tags }}
176+
labels: ${{ steps.meta-distoless.outputs.labels }}

0 commit comments

Comments
 (0)