Skip to content

Commit

Permalink
ci: add go release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aabouzaid committed Sep 10, 2023
1 parent ee50e88 commit ea8c691
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Go - Release

on:
push:
# branches:
# - main
tags:
- 'v*'
workflow_dispatch: { }

permissions:
contents: read

jobs:
release:
name: Release
permissions:
contents: write
packages: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@ca6063f4ed81b55db15b8c42d1b6f7925866342d # v3
id: release
with:
release-type: go
package-name: kustomize-plugin-merger
skip-github-release: true
changelog-types: |
[
{
"type": "feat",
"section": "Features",
"hidden": false
},
{
"type": "fix",
"section": "Bug Fixes",
"hidden": false
},
{
"type": "docs",
"section": "Documentation",
"hidden": false
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": false
}
]
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4
with:
go-version: '1.21'
- name: Login to GitHub Container Registry
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@5fdedb94abba051217030cc86d4523cf3f02243d # v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: latest
args: release --release-notes=CHANGELOG.md --clean
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Changelog

## 1.0.0 (2023-09-10)


### Features

* first working version of merger ([bd0ef52](https://github.com/aabouzaid/kustomize-plugin-merger/commit/bd0ef52ef46381c13ab8ebcf1cc6970328910b64))


### Documentation

* update the main readme and use cases ([1d2e9d4](https://github.com/aabouzaid/kustomize-plugin-merger/commit/1d2e9d45d3aa8ca3bae49ef11361cf4ed43338d9))
* use case - append CustomResources lists without schema ([4be2cc1](https://github.com/aabouzaid/kustomize-plugin-merger/commit/4be2cc168219fe040a556a02cfdd8d76b9c9695e))
* use case - Generate multiple manifests from a single file ([37b9ce1](https://github.com/aabouzaid/kustomize-plugin-merger/commit/37b9ce1c7a8d4daabc5a6762d1d5e3a1566c1e02))
* use case - Organize long manifests into smaller ones ([dad79e0](https://github.com/aabouzaid/kustomize-plugin-merger/commit/dad79e0a9e19f46d261c6ed288d25756d59ab559))


### Continuous Integration

* add go release workflow ([f287bed](https://github.com/aabouzaid/kustomize-plugin-merger/commit/f287bed3b009dd2b8e62139974b71c615290bf57))
* go linter config and ci workflow ([#1](https://github.com/aabouzaid/kustomize-plugin-merger/issues/1)) ([8a3c75e](https://github.com/aabouzaid/kustomize-plugin-merger/commit/8a3c75e1d9eccc9f5ef1211f033b2a5e5d2338cf))
* go releaser ([#2](https://github.com/aabouzaid/kustomize-plugin-merger/issues/2)) ([df20b82](https://github.com/aabouzaid/kustomize-plugin-merger/commit/df20b8281c8107832f0f66d0f857f5f32d558215))
* renovate for dependency update ([#4](https://github.com/aabouzaid/kustomize-plugin-merger/issues/4)) ([61ea189](https://github.com/aabouzaid/kustomize-plugin-merger/commit/61ea189dca345c24e4141bc479da6eb1becfd3aa))
* **security:** apply best practices by step security ([#8](https://github.com/aabouzaid/kustomize-plugin-merger/issues/8)) ([fe208e0](https://github.com/aabouzaid/kustomize-plugin-merger/commit/fe208e06b1d35c454cddcec881d6c282b1691a0a))
* **security:** codeql analysis workflow ([#3](https://github.com/aabouzaid/kustomize-plugin-merger/issues/3)) ([246696c](https://github.com/aabouzaid/kustomize-plugin-merger/commit/246696c73b5c0635ca421727d6e88035a02eb80a))
* **security:** Scorecard security workflow ([52c4496](https://github.com/aabouzaid/kustomize-plugin-merger/commit/52c4496f409c13536c8adf6f3539eb0f1c605944))

0 comments on commit ea8c691

Please sign in to comment.