Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release process #13

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
changelog:
categories:
- title: Changes
labels:
- '*'
exclude:
labels:
- dependencies
- title: Dependencies
labels:
- dependencies
57 changes: 57 additions & 0 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Argo-rollout-config-keeper CI: release"

on:
push:
tags:
- 'v*.*.*'

jobs:
release_artifact:
name: Release Artifact
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Upload artifact to release
uses: Shopify/upload-to-release@v1
with:
name: argo-rollout-config-keeper-operator.yaml
path: argo-rollout-config-keeper-operator.yaml
repo-token: ${{ secrets.GITHUB_TOKEN }}
content-type: text/plain

release_image:
name: Release Image
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.4'

- name: Install dependencies
run: |
go mod tidy
go mod vendor

- name: Make fmt
run: make fmt

- name: Make lint
run: make lint

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push Docker image
run: |
make docker-build docker-push IMG="${{ secrets.DOCKERHUB_USERNAME }}/argo-rollout-config-keeper-operator:v${{ github.ref_name }}"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ endif
OPERATOR_SDK_VERSION ?= v1.34.2

# Image URL to use all building/pushing image targets
IMG ?= controller:latest
IMG ?= docker.io/runaidevops/argo-rollout-config-keeper-operator:v${VERSION}
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.28.3

Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ make install
```
or
```sh
kubectl apply -f github.com/run-ai/argo-rollout-config-keeper/rleasses/0.0.1/argo-rollout-config-keeper.yaml
kubectl apply -f github.com/run-ai/argo-rollout-config-keeper/rleasses/v0.0.1/argo-rollout-config-keeper.yaml
```


Expand Down Expand Up @@ -97,6 +97,17 @@ Run unit tests
```sh
make test
```

## Grafana Dashboards

![](./docs/grafana%20dashboards/grafana.png)

Example dashboards can be found in the following links:

[Cluster Scope Dashboard](./docs/grafana%20dashboards/cluster-scope-dashboard.json)

[Namespace Scope Dashboard](./docs/grafana%20dashboards/namespace-scope-dashboard.json)

## Contributing

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.
Expand Down
2 changes: 1 addition & 1 deletion config/default/manager_auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ spec:
- name: manager
args:
- "--health-probe-bind-address=:8081"
- "--metrics-bind-address=127.0.0.1:8080"
- "--metrics-bind-address=0.0.0.0:8080"
- "--leader-elect"
4 changes: 2 additions & 2 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: controller
newTag: latest
newName: docker.io/runaidevops/argo-rollout-config-keeper-operator
newTag: v0.0.1
Loading