Skip to content

Commit

Permalink
chore: push tags other than dev to Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
ozangulle committed Feb 20, 2025
1 parent 72eccbe commit 6afaa77
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: build
on:
push:
branches: [ master ]
tags:
- '*'
workflow_dispatch:

jobs:
Expand All @@ -15,6 +17,16 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ozangulle/plauna
tags: |
# set dev tag for master branch
type=raw,value=dev,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=ref,event=branch
-
name: Login to DockerHub
uses: docker/login-action@v2
Expand All @@ -28,4 +40,5 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
file: Dockerfile
tags: ozangulle/plauna:dev
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 6afaa77

Please sign in to comment.