Skip to content

Commit

Permalink
fix/release workflow (#30)
Browse files Browse the repository at this point in the history
* remove redundant path from helm release workflow

* fix checkout issue in the release ci pipelines

* fix token issue in release workflow
  • Loading branch information
hoptical authored Dec 6, 2023
1 parent cca635c commit a5ae2e9
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- 'v*'

jobs:
build-push-docker:
name: build-docker
build-push-operator:
name: build-push-operator
runs-on: ubuntu-latest
env:
OPERATOR_SDK_VERSION: v1.31.0
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
Expand All @@ -33,14 +35,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-push-bundle:
needs: build-push-docker
name: build-push-bundle
runs-on: ubuntu-latest
env:
OPERATOR_SDK_VERSION: v1.31.0
steps:
- uses: actions/checkout@v3
- name: Install operator-sdk
run: |
curl -L https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}/operator-sdk_linux_amd64 -o /usr/local/bin/operator-sdk
Expand All @@ -55,7 +49,7 @@ jobs:
helm-chart:
name: helm-chart
needs: build-push-docker
needs: build-push-operator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -65,19 +59,20 @@ jobs:
uses: appany/[email protected]
with:
name: s3-operator
repository: helm-charts
repository: ${{ github.repository }}/helm-charts
tag: ${{ github.ref_name }}
path: charts/s3-operator # Default charts/{name}
registry: ghcr.io
registry_username: ${{ github.repository_owner }}
registry_password: ${{ secrets.GITHUB_TOKEN }}

release:
needs: build-push-docker
needs: build-push-operator
name: release
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: release
run: gh release create ${{ github.ref_name }} --generate-notes --verify-tag

0 comments on commit a5ae2e9

Please sign in to comment.