Skip to content

Commit

Permalink
🔧 Added docker labels and PR builds
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterdebruijn committed Feb 3, 2025
1 parent 861c6a2 commit 5df4375
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build and Push Docker Image
on:
release:
types: [published]
pull_request:
types: [opened, synchronize]

jobs:
build:
Expand All @@ -26,7 +28,18 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ghcr.io/retigra/zabbixci

labels: |
org.opencontainers.image.title=ZabbixCI
org.opencontainers.image.description=Source control for Zabbix templates in Git
org.opencontainers.image.vendor=Retigra
org.opencontainers.image.license=AGPL-3.0
org.opencontainers.image.url=https://github.com/retigra/ZabbixCI
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 5df4375

Please sign in to comment.