diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a78202a63..1e36459c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: tags: - 'v*' +env: + CONTROLLER: ${{ github.event.repository.name }} + jobs: build-push: runs-on: ubuntu-latest @@ -49,8 +52,8 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm/v7,linux/arm64 tags: | - ghcr.io/fluxcd/notification-controller:${{ steps.prep.outputs.VERSION }} - docker.io/fluxcd/notification-controller:${{ steps.prep.outputs.VERSION }} + ghcr.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }} + docker.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }} labels: | org.opencontainers.image.title=${{ github.event.repository.name }} org.opencontainers.image.description=${{ github.event.repository.description }} @@ -60,15 +63,15 @@ jobs: org.opencontainers.image.created=${{ steps.prep.outputs.BUILD_DATE }} - name: Check images run: | - docker buildx imagetools inspect docker.io/fluxcd/notification-controller:${{ steps.prep.outputs.VERSION }} - docker buildx imagetools inspect ghcr.io/fluxcd/notification-controller:${{ steps.prep.outputs.VERSION }} - docker pull docker.io/fluxcd/notification-controller:${{ steps.prep.outputs.VERSION }} - docker pull ghcr.io/fluxcd/notification-controller:${{ steps.prep.outputs.VERSION }} + docker buildx imagetools inspect docker.io/fluxcd/${CONTROLLER}:${{ steps.prep.outputs.VERSION }} + docker buildx imagetools inspect ghcr.io/fluxcd/${CONTROLLER}:${{ steps.prep.outputs.VERSION }} + docker pull docker.io/fluxcd/${CONTROLLER}:${{ steps.prep.outputs.VERSION }} + docker pull ghcr.io/fluxcd/${CONTROLLER}:${{ steps.prep.outputs.VERSION }} - name: Generate release manifests run: | mkdir -p config/release - kustomize build ./config/crd > ./config/release/notification-controller.crds.yaml - kustomize build ./config/manager > ./config/release/notification-controller.deployment.yaml + kustomize build ./config/crd > ./config/release/${{ env.CONTROLLER }}.crds.yaml + kustomize build ./config/manager > ./config/release/${{ env.CONTROLLER }}.deployment.yaml - name: Create release uses: ncipollo/release-action@v1 with: @@ -76,5 +79,5 @@ jobs: artifacts: "config/release/*.yaml" artifactContentType: "text/plain" body: | - [CHANGELOG](https://github.com/fluxcd/notification-controller/blob/main/CHANGELOG.md) + [CHANGELOG](https://github.com/fluxcd/${{ env.CONTROLLER }}/blob/main/CHANGELOG.md) token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index a4a0c6e0d..a87c6ad71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,27 @@ All notable changes to this project are documented in this file. +## 0.9.0 + +**Release date:** 2021-02-24 + +This is the ninth MINOR prerelease. + +This prerelease comes with a fix to the alerting exclusion list. + +The Kubernetes custom resource definitions are packaged as +a multi-doc YAML asset and published on the GitHub release page. + +Improvements: +* Refactor release workflow + [#146](https://github.com/fluxcd/notification-controller/pull/146) +* Unit tests for event forwarding + [#145](https://github.com/fluxcd/notification-controller/pull/145) + +Fixes: +* Fix alerts regex filtering + [#144](https://github.com/fluxcd/notification-controller/pull/144) + ## 0.8.0 **Release date:** 2021-02-12 diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 80159ad58..bf9d46a9a 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -6,4 +6,4 @@ resources: images: - name: fluxcd/notification-controller newName: fluxcd/notification-controller - newTag: v0.8.0 + newTag: v0.9.0 diff --git a/go.mod b/go.mod index 2ccfabfcd..c90216567 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ replace github.com/fluxcd/notification-controller/api => ./api require ( github.com/fluxcd/image-reflector-controller/api v0.7.0 - github.com/fluxcd/notification-controller/api v0.8.0 + github.com/fluxcd/notification-controller/api v0.9.0 github.com/fluxcd/pkg/apis/meta v0.8.0 github.com/fluxcd/pkg/recorder v0.0.6 github.com/fluxcd/pkg/runtime v0.8.3