From e599e3c1e34bff345c8b48025a6d4b8220d07b78 Mon Sep 17 00:00:00 2001 From: Sebastian Ebling Date: Fri, 9 Feb 2024 19:43:14 +0100 Subject: [PATCH] Update docker.yml --- .github/workflows/docker.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9da0772..b685965 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,7 +3,15 @@ name: Docker build and push on: + workflow_dispatch: push: + branches: + - 'master' + tags: + - 'v*' + pull_request: + branches: + - 'master' jobs: build: @@ -14,6 +22,12 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/hudeldudel/postman-exporter - name: Set up QEMU uses: docker/setup-qemu-action@v3.0.0 @@ -37,5 +51,6 @@ jobs: linux/amd64 linux/arm64/v8 linux/arm/v7 - push: true - tags: ghcr.io/hudeldudel/postman-exporter:latest + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}