Skip to content

Commit

Permalink
Make sure we run build docker on all branches, also fix up image tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdaily committed Nov 4, 2024
1 parent 581196e commit fb7964d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
on:
push:
branches:
- "*"
- "**"
tags:
- "*"
pull_request:
Expand Down Expand Up @@ -54,5 +54,8 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ github.event_name == 'push' && github.ref_type == 'tag' && format('{0}:{1}', env.REGISTRY, env.IMAGE_NAME) }}:${{ github.ref_name }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit fb7964d

Please sign in to comment.