Skip to content

Commit

Permalink
updating go modules
Browse files Browse the repository at this point in the history
* updating go modules

* CHANGELOG updated using git cliff

* adjusting when CI runs on PR
  • Loading branch information
drew-viles authored Dec 12, 2024
1 parent 162425d commit 9c44767
Show file tree
Hide file tree
Showing 5 changed files with 310 additions and 81 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ on:
workflow_dispatch:
pull_request:
types: [ opened, reopened, synchronize ]
paths:
- "cmd/**"
- "pkg/**"
- "hack/**"
- "docker/**"
- "testhelpers/**"
- "go.mod"
- "go.sum"

jobs:
lint:
Expand All @@ -23,7 +31,7 @@ jobs:

test:
name: Run tests
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: lint
steps:
- uses: actions/checkout@v4
Expand Down
143 changes: 106 additions & 37 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,128 @@
# Changelog

## [ 2024/09/10 - v1.2.3]
All notable changes to this project will be documented in this file.

### Add/Updated
* Updated go modules
* fixed bug where k8s version wasn't being tagged onto metadata for openstack
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [unreleased]

## [ 2024/09/05 - v1.2.2]
### Changed

### Add/Updated
* Updated go modules
* new metadata prefix

### Deprecated
* All flags have been deprecated except a select few. The config file should be used from now on.
- Updating go modules
- CHANGELOG updated using git cliff

## [ 2024/04/26 - v1.2.1 ]

### Add/Updated
* Added ability to override default contained version
* Updated go modules
## [1.2.3] - 2024-10-21

## [ 2024/03/15 - v1.2.0 ]
### Changed

### BREAKING CHANGES

### Remove
* Baski server has been removed - it was extra work that was sporadically used. It's up to the user to provide a way to
interact with the results. If you wish to keep server, then look at a previous release and fork that code by all means.
- Module and golang update

## [ 2024/03/11 - v1.1.1 ]
* adding a comment around how baski fails as a todo
* updated go modules and version

### Changed/Added

* Setting images to private by default and will only set to public once a scan has passed successfully - this can still
be overridden at the config level.

## [ 2024/02/29 - v1.1.0 ]
### Fixed

### BREAKING CHANGES

* changed `cloud` prefix to `infra` in flags and config.
* changed `build.nvidia` prefix to `build.gpu` in flags and config.
* changed `build.nvidia.enable-nvidia-support` prefix to `build.gpu.enable-gpu-support` in flags and config.
- Adding metadata prefix option to signing

### Changed/Added

* Added KubeVirt as a build option.
* Supports AMD GPUs
## [1.2.2] - 2024-09-09

## [ 2024/02/15 - v1.0.0 ]
### Changed

### Changed/Added

First release with:
- Bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.7 in the go_modules group across 1 directory (#9)
- Module updates

* security updates for modules
- Updating OS and trivy support
- Updated pipeline and switched to storing images in DockerHub

* updated pipeline and switched to storing images in DockerHub
* adding a CODEOWNERS
- Add option to use existing local checkout of image-builder

Handy when you're building locally and don't want Baski fetching a copy
of the image-builder repo each and every time.

Co-authored-by: Drew Hudson-Viles <[email protected]>


### Fixed


- Metadata prefix + deprecations

* deprecated almost all of the flags in favor of the config file
* optional metadata prefix for images
* updated modules
* cleanup of error printing in tests
* updating go in the pipeline
- Correcting when the k8s metadata should be applied


## [1.2.1] - 2024-04-26

### Changed


- Go module updates and added contained version override support


## [1.2.0] - 2024-03-20

### Changed


- Added more linting and testing - updated helm charts push endpoint

* added more linting and testing - updated helm charts push endpoint
- Removed baski server

* Removed baski server
* Update golang version in pipeline
* Added a default toe the flag for scan-bucket
- Updated CHANGELOG


### Fixed


- Build section of tag pipeline still referenced old path to main.go


## [1.1.1] - 2024-03-11

### Added


- Image-visibility changes on a scan pass or fail.


### Changed


- Updated go modules & readme
- Added information on Image Visibility to the OpenStack docs


## [1.1.0] - 2024-02-29

### Added


- Major overhaul to enable multiple builders to be supported in the all phases


## [1.0.0] - 2024-02-15

### Added


- Initial Commit and Release


* Functioning support for OpenStack build, scan and signing.
* Baski Server
69 changes: 69 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# git-cliff configuration file
[changelog]
# changelog header
header = """
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
"""
# template for the changelog body
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
{% for release in releases -%}
{% if release.version -%}
[{{ release.version | trim_start_matches(pat="v") }}]: {{ repo_url }}/compare/v{{ previous_release.version | trim_start_matches(pat="v") }}..v{{ release.version | trim_start_matches(pat="v") }}
{% endif -%}
{% endfor -%}
<!-- generated by git-cliff -->
"""

[git]
# conventional commits parsing
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = false
# process each line of a commit as an individual commit
split_commits = false
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^.*feat.*", group = "Added"},
{ message = "^.*fix.*", group = "Fixed"},
{ message = "^.*chore.*", group = "Changed"},
{ message = "^.*refactor.*", group = "Changed"},
{ message = "^.*remove.*", group = "Removed"},
{ message = "^.*docs.*", group = "Changed"},
{ message = "^.*style.*", group = "Changed"},
{ message = "^.*test.*", group = "Changed"},
{ message = "^.*", group = "Changed"},
]
# protect breaking changes from being skipped
protect_breaking_commits = true
# filter out the commits that are not matched by commit parsers
filter_commits = false
# glob pattern for matching git tags
tag_pattern = "v[0-9]*"
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
Loading

0 comments on commit 9c44767

Please sign in to comment.