Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: Publish release artifacts

on:
release:
types:
- created
push:
branches: [main]
tags: ["v*"]

env:
REGISTRY: ghcr.io

jobs:
release:
if: startsWith(github.ref, 'refs/tags/v') == true
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -42,6 +41,7 @@ jobs:
images: |
${{ env.REGISTRY }}/alexandrevilain/temporal-operator
tags: |
type=ref,event=branch
type=ref,event=tag
- name: Build and push operator docker image
uses: docker/build-push-action@v5
Expand All @@ -58,6 +58,7 @@ jobs:
images: |
${{ env.REGISTRY }}/alexandrevilain/temporal-operator-bundle
tags: |
type=ref,event=branch
type=ref,event=tag
- name: Build and push bundle docker image
uses: docker/build-push-action@v5
Expand All @@ -68,8 +69,8 @@ jobs:
tags: ${{ steps.metabundle.outputs.tags }}
labels: ${{ steps.metabundle.outputs.labels }}
- name: Release
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v2
with:
files: |
out/release/artifacts/*.yaml

Loading