Skip to content

Commit

Permalink
Build 'dev' container image of push to 'main' branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobMiksch committed Jul 29, 2024
1 parent cd9913f commit 6dd1c45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Build and Push Docker Image

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

env:
Expand Down Expand Up @@ -40,7 +42,8 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=sha,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=dev,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
Expand Down

0 comments on commit 6dd1c45

Please sign in to comment.