Skip to content

Commit

Permalink
add semantic version tags to Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Sep 17, 2024
1 parent 7637adf commit dee4e74
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Test and Publish
on:
push:

env:
IMAGE_NAME: ${{ vars.DOCKER_ORG }}/idp-id-broker

jobs:
tests:
name: Tests
Expand Down Expand Up @@ -36,7 +33,11 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
images: ${{ vars.DOCKER_ORG }}/${{ github.event.repository.name }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit dee4e74

Please sign in to comment.