Skip to content

Commit

Permalink
updated release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Scaffidi committed Oct 27, 2024
1 parent 6a3e8b1 commit 8429744
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
---
name: goreleaser
name: "Release"

on:
push:
# run only against tags
tags:
- "*"
release:

permissions:
contents: write
Expand All @@ -20,17 +17,16 @@ jobs:
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
#- name: Set up Go
# uses: actions/setup-go@v5
# with:
# go-version: stable

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}
- name: Build and Push Docker Images
run: make docker-buildx VERSION=${{ github.event.release.tag_name }}

- name: Build and Push OLM Bundle Image
run: make bundle-push VERSION=${{ github.event.release.tag_name }}

- name: Build and Push OLM Catalog Image
run: make catalog-push VERSION=${{ github.event.release.tag_name }}

0 comments on commit 8429744

Please sign in to comment.