Skip to content

Commit

Permalink
Build docker image with and without influxdb
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed May 15, 2023
1 parent bd42143 commit 71c1221
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
permissions:
contents: read
packages: write
strategy:
matrix:
with_influxdb: ["no", "yes"]
steps:
-
name: Checkout
Expand All @@ -28,6 +31,8 @@ jobs:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ github.repository }}
flavor: |
suffix=${{ matrix.with_influxdb == 'yes' && '-with-influxdb' || '' }}, onlatest=true
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -47,6 +52,8 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
build-args: |
with_influxdb=${{ matrix.with_influx_db }}
platforms: linux/amd64,linux/386,linux/arm64,linux/arm
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 71c1221

Please sign in to comment.