-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create CODE_OF_CONDUCT.md * Setup new CMOs * Reintroduce some v1 logic * Functional testing updates * Linting * Testing setup * Typo * Remove kind. Using testenv * Remove destinations and just use RegistriesConfig * Linting * List tags and copy images between registries (#5) * Rough implementation of listing tags - untested * Use go-containerregistry package * implement testing * Testing documentation * Linting * Pull and push images * Switch to crane for registry requests * Linting * Remove unused code * Delete image tags (#6) * Rough implementation of listing tags - untested * Use go-containerregistry package * implement testing * Testing documentation * Linting * Pull and push images * Switch to crane for registry requests * Linting * Remove unused code * Delete image tags * Improve documentation * Try reducing complexity of Run * CMO setup docs * Cherry pick the doc changes out for a new pr * docs: how to deploy and use containership (#7) * Update releaser github action * Test again * Update changelog * Generate yaml file on release * Use makefile to generate yaml * Fix version bug * Typos * Improve documentation * Added deployment instructions * Update README.md * Force lint to run again * Bump again. Grrr github actions
- Loading branch information
Chris Lenard
authored
Jun 2, 2021
1 parent
fe46f6b
commit 8fde7ba
Showing
105 changed files
with
2,724 additions
and
2,580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{ if .Versions -}} | ||
|
||
[Unreleased] | ||
{{ if .Unreleased.CommitGroups -}} {{ range .Unreleased.CommitGroups -}} | ||
|
||
{{ .Title }} | ||
{{ range .Commits -}} | ||
|
||
{{ if .Scope }}{{ .Scope }}: {{ end }}{{ .Subject }} - [{{ .Hash.Short }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }}) {{ end }} {{ end -}} {{ end -}} {{ end -}} | ||
{{ range .Versions }} | ||
|
||
{{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} | ||
{{ range .CommitGroups -}} | ||
|
||
{{ .Title }} | ||
{{ range .Commits -}} | ||
|
||
{{ if .Scope }}{{ .Scope }}: {{ end }}{{ .Subject }} - [{{ .Hash.Short }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }}) {{ end }} {{ end -}} | ||
{{- if .RevertCommits -}} | ||
|
||
Reverts | ||
{{ range .RevertCommits -}} | ||
|
||
{{ .Revert.Header }} {{ end }} {{ end -}} | ||
{{- if .MergeCommits -}} | ||
|
||
Pull Requests | ||
{{ range .MergeCommits -}} | ||
|
||
{{ .Header }} {{ end }} {{ end -}} | ||
{{- if .NoteGroups -}} {{ range .NoteGroups -}} | ||
|
||
{{ .Title }} | ||
{{ range .Notes }} {{ .Body }} {{ end }} {{ end -}} {{ end -}} {{ end -}} | ||
|
||
{{- if .Versions }} [Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD {{ range .Versions -}} {{ if .Tag.Previous -}} [{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }} {{ end -}} {{ end -}} {{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
style: github | ||
template: CHANGELOG.tpl.md | ||
info: | ||
title: CHANGELOG | ||
repository_url: https://github.com/relativityone/helm-charts | ||
options: | ||
commit_groups: | ||
title_maps: | ||
build: Build 🏭 | ||
chore: Maintenance 🔧 | ||
ci: Continuous Integration 💜 | ||
docs: Documentation 📘 | ||
feat: Features 🌈 | ||
fix: Bug Fixes 🐞 | ||
perf: Performance Improvements 🚀 | ||
refactor: Code Refactoring 💎 | ||
revert: Revert Change ◀️ | ||
style: Code Style 🎶 | ||
test: Testing 💚 | ||
sec: Security 🛡️ | ||
header: | ||
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" | ||
pattern_maps: | ||
- Type | ||
- Scope | ||
- Subject | ||
issues: | ||
prefix: | ||
- DEVOPS- | ||
refs: | ||
actions: | ||
- Closes | ||
merges: | ||
pattern: "^Merge pull request '(\\w+)'$" | ||
pattern_maps: | ||
- Subject | ||
notes: | ||
keywords: | ||
- BREAKING CHANGE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file | ||
# Ignore all files which are not go type | ||
!**/*.go | ||
!**/*.mod | ||
!**/*.sum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- Thank you for helping Containership with a pull request! | ||
Use conventional commit messages, such as | ||
feat: Updated something in the r1-istio helm chart | ||
or | ||
fix: repair hole in wumpus | ||
Common commit types: | ||
build: Build | ||
chore: Maintenance | ||
ci: Continuous Integration | ||
docs: Documentation | ||
feat: Features | ||
fix: Bug Fixes | ||
perf: Performance Improvements | ||
refactor: Code Refactoring | ||
revert: Revert Change | ||
style: Code Style | ||
test: Testing | ||
sec: Security | ||
--> | ||
|
||
**Change Explanation**: | ||
<!-- What does this PR improve or fix in Kubernetes Shared Compute? --> | ||
|
||
**Notes**: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
types: | ||
build: Build | ||
chore: Maintenance | ||
ci: Continuous Integration | ||
docs: Documentation | ||
feat: Features | ||
fix: Bug Fixes | ||
perf: Performance Improvements | ||
refactor: Code Refactoring | ||
revert: Revert Change | ||
style: Code Style | ||
test: Testing | ||
sec: Security |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,7 @@ on: | |
push: | ||
tags: | ||
- v* | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
# TODO: only main branch | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Generate Release Notes | ||
id: changelog | ||
uses: ./.github/changelog | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14 | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/[email protected] | ||
with: | ||
version: latest | ||
args: release --rm-dist --release-notes=${{ steps.changelog.outputs.filepath }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} | ||
|
||
- name: Release Deployment YAML file | ||
run: make release | ||
env: | ||
VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
|
||
# Get release information to determine id of the current release | ||
- name: Get Release | ||
id: get-release-info | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Upload deployment YAML file to GitHub release | ||
- name: Upload Deployment YAML file | ||
id: upload-deployment-yaml | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: https://uploads.github.com/repos/relativitydev/containership/releases/${{ steps.get-release-info.outputs.id }}/assets?name=containership-${{ steps.get_version.outputs.VERSION }}.yaml | ||
asset_path: containership-${{ steps.get_version.outputs.VERSION }}.yaml | ||
asset_name: containership-${{ steps.get_version.outputs.VERSION }}.yaml | ||
asset_content_type: application/x-yaml | ||
|
||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: 'Get Previous tag' | ||
id: previoustag | ||
uses: "WyriHaximus/github-action-get-previous-tag@v1" | ||
|
||
- name: Push to Docker Hub | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: relativitydev/containership:latest,relativitydev/containership:${{ steps.previoustag.outputs.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ | |
/bin | ||
cover.out | ||
.env | ||
/testbin |
Oops, something went wrong.