Skip to content
Open
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
65 changes: 65 additions & 0 deletions .github/workflows/dis-cache-lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Dis Redis Lint and Test

on:
push:
branches:
- main
paths:
- services/dis-cache-operator/**
- .github/workflows/dis-cache-lint-test.yml
pull_request:
branches:
- main
paths:
- services/dis-cache-operator/**
- .github/workflows/dis-cache-lint-test.yml

permissions:
contents: read

jobs:
lint:
name: Run linter on Ubuntu
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/dis-cache-operator
steps:
- name: Clone the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Comment thread
arealmaas marked this conversation as resolved.
with:
persist-credentials: false

- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: "services/dis-cache-operator/go.mod"
cache-dependency-path: "services/dis-cache-operator/go.sum"

- name: Run linter
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: v2.11.4
working-directory: services/dis-cache-operator
test:
name: Run tests on Ubuntu
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/dis-cache-operator
steps:
- name: Clone the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: "services/dis-cache-operator/go.mod"
cache-dependency-path: "services/dis-cache-operator/go.sum"

- name: Running Tests
run: |
make verify-deps
make test
Comment thread
coderabbitai[bot] marked this conversation as resolved.
96 changes: 96 additions & 0 deletions .github/workflows/dis-cache-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Scan/Release Dis Redis Operator Image and Build Kustomize OCI Artifact

env:
FLUX_ARTIFACT_NAME: dis/kustomize/dis-cache-operator

on:
pull_request:
branches:
- main
paths:
- .github/workflows/dis-cache-release.yml
- services/dis-cache-operator/**
- .github/workflows/reusable-image-scan-and-release-ghcr.yml
push:
branches:
- main
paths:
- .github/workflows/dis-cache-release.yml
- services/dis-cache-operator/**
- .github/workflows/reusable-image-scan-and-release-ghcr.yml
tags:
- "dis-cache-v*"
workflow_dispatch: {}

permissions:
contents: read

jobs:
build-and-release-image:
name: Build, scan and release
permissions:
contents: read
packages: write
uses: ./.github/workflows/reusable-image-scan-and-release-ghcr.yml
with:
release_latest: true
image_name: dis-cache-operator
tag_prefix: dis-cache-v
platforms: "linux/amd64"
workdir: ./services/dis-cache-operator
build-release-flux-oci-latest:
name: Build latest from main
if: github.ref == 'refs/heads/main'
permissions:
contents: read
packages: write
id-token: write
defaults:
run:
working-directory: ./services/dis-cache-operator/config
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Comment thread
coderabbitai[bot] marked this conversation as resolved.
with:
persist-credentials: false
- name: Push latest flux oci image from main
uses: ./actions/flux/build-push-image
with:
Comment thread
coderabbitai[bot] marked this conversation as resolved.
workdir: ./services/dis-cache-operator/config
image_name: ${{ env.FLUX_ARTIFACT_NAME }}
tag: latest
azure_subscription_id: ${{ secrets.AZURE_ALTINNACR_SUBSCRIPTION_ID }}
azure_app_id: ${{ secrets.AZURE_ALTINNACR_APP_ID }}
azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }}
build-release-flux-oci-release:
name: Build release from tag
if: startsWith(github.ref, 'refs/tags/dis-cache-v')
environment: flux-release
permissions:
contents: read
packages: write
id-token: write
defaults:
run:
working-directory: ./services/dis-cache-operator/config
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup vars
id: vars
run: |
tag="${GITHUB_REF/refs\/tags\/dis-cache-/}"
echo "tag=${tag}" >> ${GITHUB_OUTPUT}
- name: Push flux oci image from release tag
uses: ./actions/flux/build-push-image
with:
workdir: ./services/dis-cache-operator/config
image_name: ${{ env.FLUX_ARTIFACT_NAME }}
tag: ${{ steps.vars.outputs.tag }}
azure_subscription_id: ${{ secrets.AZURE_ALTINNACR_SUBSCRIPTION_ID }}
azure_app_id: ${{ secrets.AZURE_ALTINNACR_APP_ID }}
azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ override.tf.json
terraform.rc
go.work
go.work.sum

# Local oh-my-claudecode session state
.omc/
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"services/dis-identity-operator": "0.2.1",
"services/dis-apim-operator": "1.0.0",
"services/dis-vault-operator": "1.4.3",
"services/dis-cache-operator": "0.1.0",
"services/lakmus": "1.1.0",
"infrastructure/images/azure-devops-agent": "1.2.7",
"infrastructure/images/gh-runner": "0.6.2",
Expand Down
4 changes: 4 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"release-type": "simple",
"component": "dis-vault"
},
"services/dis-cache-operator": {
"release-type": "simple",
"component": "dis-cache"
},
"services/lakmus": {
"release-type": "simple",
"component": "lakmus"
Expand Down
Loading