Skip to content

Commit

Permalink
ci: build docker image on push to main branch (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo42 authored Jan 24, 2025
1 parent 1d15878 commit 1495818
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Docker
on:
push:
branches:
- "main"
tags:
- "v*"

Expand Down Expand Up @@ -74,9 +76,10 @@ jobs:
images: ghcr.io/txpipe/dolos
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern=v{{major}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{version}}
type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=semver,pattern=v{{major}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=semver,pattern=v{{major}}.{{minor}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=semver,pattern=v{{version}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=sha
- name: Login to DockerHub
Expand Down

0 comments on commit 1495818

Please sign in to comment.