Skip to content

Commit

Permalink
Semver versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel committed May 7, 2022
1 parent 824ac33 commit 4624313
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docker-image-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Create and publish a Docker image

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

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -32,6 +34,11 @@ jobs:
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
Expand Down

0 comments on commit 4624313

Please sign in to comment.