Skip to content

Commit

Permalink
ci: replace hub with gh; release new version (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
isindir authored Feb 11, 2024
1 parent f402716 commit 16dc9ac
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 118 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ jobs:
# UPDATE_HERE
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on
runs-on: ubuntu-22.04
env:
# UPDATE_HERE
# https://github.com/github/hub/releases
HUB_VERSION: 2.14.2

steps:

Expand Down Expand Up @@ -48,14 +44,6 @@ jobs:
if: env.SKIP_RELEASE == ''
uses: asdf-vm/actions/install@v3

- name: install hub
if: env.SKIP_RELEASE == ''
run: |
curl -sSLO https://github.com/github/hub/releases/download/v${HUB_VERSION}/hub-linux-amd64-${HUB_VERSION}.tgz
tar -xzf hub-linux-amd64-${HUB_VERSION}.tgz
chmod +x hub-linux-amd64-${HUB_VERSION}/bin/hub
sudo mv hub-linux-amd64-${HUB_VERSION}/bin/hub /usr/local/bin/
# UPDATE_HERE
- name: Set up QEMU
if: env.SKIP_RELEASE == ''
Expand All @@ -79,9 +67,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git tag "${SOPS_SEC_OPERATOR_VERSION}"
git-chglog "${SOPS_SEC_OPERATOR_VERSION}" > chglog.tmp
hub release create -F chglog.tmp "${SOPS_SEC_OPERATOR_VERSION}"
gh release create "${SOPS_SEC_OPERATOR_VERSION}" -F chglog.tmp
# UPDATE_HERE
- name: Docker build
Expand Down
5 changes: 2 additions & 3 deletions .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ golang 1.21.7
sops 3.8.1
# https://github.com/kubernetes-sigs/kustomize/releases
kustomize 5.3.0
# 5.0.3
# https://github.com/rancher/k3d/releases
k3d 5.6.0
# https://github.com/kubernetes/kubernetes/releases
Expand All @@ -22,5 +21,5 @@ kubeconform 0.6.4
git-chglog 0.15.4
# https://github.com/golangci/golangci-lint/releases
golangci-lint 1.56.1
# https://github.com/kubernetes-sigs/controller-tools/releases
#kube-controller-tools 0.13.0
# https://github.com/cli/cli/releases
github-cli 2.43.1
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UPDATE_HERE
GO := GOPROXY=https://proxy.golang.org go
SOPS_SEC_OPERATOR_VERSION := 0.12.2
SOPS_SEC_OPERATOR_VERSION := 0.12.1

# https://github.com/kubernetes-sigs/controller-tools/releases
CONTROLLER_GEN_VERSION := "v0.14.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ encrypted files stored in `git` repository.

| Kubernetes | Sops | Chart | Operator |
|---|---|---|---|
| v1.29.x | v3.8.1 | 0.18.2 | 0.12.2 |
| v1.29.x | v3.8.1 | 0.18.3 | 0.12.3 |
| v1.28.x | v3.8.1 | 0.17.4 | 0.11.4 |
| v1.27.x | v3.7.3 | 0.15.5 | 0.9.5 |
| v1.26.x | v3.7.3 | 0.14.2 | 0.8.2 |
Expand Down
4 changes: 2 additions & 2 deletions chart/helm3/sops-secrets-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
# UPDATE_HERE
version: 0.18.2
appVersion: 0.12.2
version: 0.18.3
appVersion: 0.12.3
type: application
description: Helm chart deploys sops-secrets-operator
name: sops-secrets-operator
Expand Down
2 changes: 1 addition & 1 deletion chart/helm3/sops-secrets-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ The following table lists the configurable parameters of the Sops-secrets-operat
| healthProbes.readiness | object | `{"initialDelaySeconds":5,"periodSeconds":10}` | Readiness probe configuration |
| image.pullPolicy | string | `"Always"` | Operator image pull policy |
| image.repository | string | `"isindir/sops-secrets-operator"` | Operator image name |
| image.tag | string | `"0.12.2"` | Operator image tag |
| image.tag | string | `"0.12.3"` | Operator image tag |
| imagePullSecrets | list | `[]` | Secrets to pull image from private docker repository |
| initImage.pullPolicy | string | `"Always"` | Init container image pull policy |
| initImage.repository | string | `"ubuntu"` | Init container image name |
Expand Down
6 changes: 3 additions & 3 deletions chart/helm3/sops-secrets-operator/tests/operator_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ tests:
app.kubernetes.io/instance: sops
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: sops-secrets-operator
app.kubernetes.io/version: 0.12.2
helm.sh/chart: sops-secrets-operator-0.18.2
app.kubernetes.io/version: 0.12.3
helm.sh/chart: sops-secrets-operator-0.18.3

# custom name
- it: should correctly render custome name
Expand Down Expand Up @@ -170,7 +170,7 @@ tests:
# UPDATE_HERE
- equal:
path: spec.template.spec.containers[0].image
value: isindir/sops-secrets-operator:0.12.2
value: isindir/sops-secrets-operator:0.12.3
- equal:
path: spec.template.spec.containers[0].imagePullPolicy
value: Always
Expand Down
2 changes: 1 addition & 1 deletion chart/helm3/sops-secrets-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ image:
# -- Operator image name
repository: isindir/sops-secrets-operator
# -- Operator image tag
tag: 0.12.2
tag: 0.12.3
# -- Operator image pull policy
pullPolicy: Always

Expand Down
Loading

0 comments on commit 16dc9ac

Please sign in to comment.