Skip to content

Commit

Permalink
better github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mducoli committed Nov 1, 2023
1 parent e181e93 commit ad43068
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,27 @@ on:
push:
branches:
- "master"
tags:
- "v*.*.*"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
mducoli/cronupper
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern={{version}},value=latest
type=raw,value=git,enable={{is_default_branch}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -26,4 +40,5 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: mducoli/cronupper:git
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit ad43068

Please sign in to comment.