Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hudeldudel authored Feb 9, 2024
1 parent b4c894d commit e599e3c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
name: Docker build and push

on:
workflow_dispatch:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
branches:
- 'master'

jobs:
build:
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit e599e3c

Please sign in to comment.