Skip to content

Commit

Permalink
ci: fix release (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamasato authored Sep 9, 2023
1 parent d0a22e8 commit f2993fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: release

on:
release:
types: [published]
push:
tags:
- 'v*'

env:
REGISTRY: ghcr.io
Expand All @@ -11,6 +12,7 @@ env:
jobs:
build-and-push-image:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
permissions:
contents: read
packages: write
Expand All @@ -37,7 +39,7 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ github.event.release.tag_name }}
labels: ${{ steps.meta.outputs.labels }}

create-pr-to-update-kustomization:
Expand Down

0 comments on commit f2993fc

Please sign in to comment.