Skip to content

Commit

Permalink
tag main if push
Browse files Browse the repository at this point in the history
  • Loading branch information
chkpwd committed Oct 11, 2023
1 parent 7e98a4c commit 25d9ab3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/packages.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build/Push Image

on:
push:
branches: [ 'main' ]
tags: [ '*' ]
release:
types: [published]
pull_request:
Expand Down Expand Up @@ -51,7 +54,8 @@ jobs:
with:
push: ${{ github.event.inputs.push != 'false' }}
platforms: linux/amd64,linux/arm64,linux/arm
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false

0 comments on commit 25d9ab3

Please sign in to comment.