mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-10-25 09:51:02 +02:00
chore: Only tag images with branchname if changes are on master branch
This commit is contained in:
parent
9f582e4c75
commit
22c01b54b8
1 changed files with 6 additions and 5 deletions
3
.github/workflows/on-push.yml
vendored
3
.github/workflows/on-push.yml
vendored
|
|
@ -8,6 +8,7 @@ on:
|
|||
- 'go.sum'
|
||||
- 'Dockerfile'
|
||||
- '.github/workflows/**'
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -30,5 +31,5 @@ jobs:
|
|||
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/riscv64
|
||||
push: true
|
||||
tags: |
|
||||
${{ github.repository }}:${{ github.ref_name }}
|
||||
${{ github.repository }}:commit-${{ github.sha }}
|
||||
${{ github.ref_name == 'master' && format('{0}:{1}', github.repository, github.ref_name) || '' }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue