Skip to content

Commit

Permalink
fix: trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
ponkio-o committed Apr 30, 2024
1 parent a7f72c7 commit e62cc1e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Release

on:
push:
branches:
- "master"
tags:
- "v*"

Expand Down Expand Up @@ -49,18 +47,9 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
file: ${{ matrix.images.dockerfile }}
tags: ${{ matrix.images.image_name }}:latest
push: true
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Add version tag
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
platforms: linux/amd64,linux/arm64
file: ${{ matrix.images.dockerfile }}
tags: ${{ matrix.images.image_name }}:${{ github.ref_name }}
tags: |
${{ matrix.images.image_name }}:latest
${{ matrix.images.image_name }}:${{ github.ref_name }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit e62cc1e

Please sign in to comment.