Skip to content

Commit

Permalink
Configure tags for main/develop and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
TimVosch committed Nov 5, 2023
1 parent 911d7bd commit 942d526
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: Build latest staging images
on:
push:
branches:
- dev
- dev-build-images
- develop
tags:
- '*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down Expand Up @@ -77,6 +79,12 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ matrix.image }}
tags: |
type=edge,branch=develop
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}}
type=sha
- name: Build and push
uses: docker/build-push-action@v4
Expand Down

0 comments on commit 942d526

Please sign in to comment.