Skip to content

Commit

Permalink
update github actions to actually build the image
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Feb 1, 2025
1 parent dec612b commit e58591a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,23 @@ jobs:
type=semver,pattern={{major}}
type=sha,prefix=
- name: Docker Meta Distroless
id: meta-distroless
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
${{ env.DOCKER_IMAGE }}
flavor: |
suffix=-distroless,onlatest=true
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha,prefix=
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down Expand Up @@ -147,3 +164,13 @@ jobs:
push: true
tags: ${{ steps.meta-alpine.outputs.tags }}
labels: ${{ steps.meta-alpine.outputs.labels }}

- name: Build Distroless and Push
uses: docker/build-push-action@v5
with:
file: LavalinkServer/docker/distroless.Dockerfile
context: .
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.meta-distoless.outputs.tags }}
labels: ${{ steps.meta-distoless.outputs.labels }}

0 comments on commit e58591a

Please sign in to comment.