Skip to content

Commit

Permalink
Merge pull request #15 from mbwhite/docker_variants
Browse files Browse the repository at this point in the history
feat: alpine and slim images
  • Loading branch information
mbwhite authored Aug 23, 2024
2 parents 96e11b0 + bff8a3e commit 5ca5906
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 71 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,3 @@ jobs:
tags: ${{ steps.onviffmqtt.outputs.tags }}
labels: ${{ steps.onviffmqtt.outputs.labels }}

id: onviffmqtt
uses: docker/metadata-action@v3
with:
images: ghcr.io/ampretia/onviffmqtt
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}-alpine
type=semver,pattern={{major}}.{{minor}}-alpine
type=semver,pattern={{major}}-alpine
type=sha
- name: build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
build-args: VARIANT=alpine
tags: ${{ steps.onviffmqtt.outputs.tags }}
labels: ${{ steps.onviffmqtt.outputs.labels }}
Loading

0 comments on commit 5ca5906

Please sign in to comment.