Skip to content

Commit

Permalink
kg
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobMiksch authored Jul 28, 2024
1 parent cd9913f commit ea1d193
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: Build and Push Docker Image

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


env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down Expand Up @@ -40,10 +43,10 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=dev,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}},enable={{tag}}
type=semver,pattern={{major}}.{{minor}},enable={{tag}}
type=semver,pattern={{major}},enable={{tag}}
- name: Build and push Docker Image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit ea1d193

Please sign in to comment.