mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 02:14:48 +00:00
Switch to buildx bake
This commit is contained in:
parent
6cf225069d
commit
daa7f37f9c
3 changed files with 62 additions and 14 deletions
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
|
|
@ -31,16 +31,18 @@ jobs:
|
|||
with:
|
||||
images: ${{ env.DOCKERHUB_SLUG }}
|
||||
tag-edge: true
|
||||
tag-match: (.*)-RC
|
||||
tag-match: (.*)-r
|
||||
tag-match-group: 1
|
||||
label-custom: |
|
||||
org.opencontainers.image.title=LibreNMS
|
||||
org.opencontainers.image.description=Fully featured network monitoring system
|
||||
org.opencontainers.image.vendor=CrazyMax
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
buildkitd-flags: "--debug"
|
||||
-
|
||||
name: Login to DockerHub
|
||||
if: github.event_name != 'pull_request'
|
||||
|
|
@ -50,18 +52,13 @@ jobs:
|
|||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
-
|
||||
name: Build
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/bake-action@v1
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/s390x
|
||||
files: |
|
||||
./docker-bake.hcl
|
||||
${{ steps.docker_meta.outputs.bake-file }}
|
||||
targets: image-all
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||
labels: |
|
||||
${{ steps.docker_meta.outputs.labels }}
|
||||
org.opencontainers.image.title=LibreNMS
|
||||
org.opencontainers.image.description=Fully featured network monitoring system
|
||||
org.opencontainers.image.vendor=CrazyMax
|
||||
-
|
||||
name: Check manifest
|
||||
if: github.event_name != 'pull_request'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue