Skip to content

Commit 2c3e99f

Browse files
committed
chore: savepoint
1 parent 9fdc6ac commit 2c3e99f

File tree

5 files changed

+79
-0
lines changed

5 files changed

+79
-0
lines changed

.github/workflows/deploy.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: Klickhouse Example - Deploy
3+
4+
on:
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
packages: write
10+
11+
jobs:
12+
converge:
13+
runs-on: deploy
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v3
19+
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v3
22+
with:
23+
install: true
24+
driver-opts: image=moby/buildkit:latest
25+
buildkitd-flags: --debug
26+
27+
- name: Cache Werf Stages
28+
uses: actions/cache@v4
29+
with:
30+
path: ~/.werf/local_cache
31+
key: ${{ runner.os }}-werf-${{ github.sha }}
32+
restore-keys: |
33+
${{ runner.os }}-werf-
34+
35+
- name: Login to GitHub Container Registry
36+
uses: docker/login-action@v3
37+
with:
38+
registry: ghcr.io
39+
username: ${{ github.actor }}
40+
password: ${{ secrets.GITHUB_TOKEN }}
41+
42+
- name: Converge
43+
uses: werf/actions/converge@v2
44+
with:
45+
env: production
46+
kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
47+
env:
48+
WERF_REPO: ghcr.io/katanacap/klickhouse-example
49+
WERF_SECRET_KEY: ${{ secrets.WERF_SECRET_KEY }}
50+
DOCKER_BUILDKIT: 1
51+
WERF_LOG_VERBOSE: "on"
52+
WERF_DOCKER_SERVER_STORAGE_DRIVER: overlay2
53+
WERF_BUILDAH_MODE: auto
54+

.helm/values.yaml

Whitespace-only changes.

devenv.nix

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
pkgs.cargo-audit
1414
pkgs.just
1515
pkgs.tree
16+
pkgs.werf
17+
pkgs.kubernetes-helm
18+
pkgs.vault-medusa
19+
# pkgs.vault-bin
20+
# pkgs.ngrok
1621
] ++ lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk; [
1722
frameworks.SystemConfiguration
1823
frameworks.Security

werf-giterminism.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
configVersion: 1
2+
3+
---
4+
giterminism:
5+
config:
6+
allowUncommitted: true
7+

werf.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
project: klickhouse-example
2+
3+
configVersion: 1
4+
5+
---
6+
image: klickhouse-example
7+
dockerfile: Dockerfile
8+
9+
---
10+
deploy:
11+
helmChartDir: .helm
12+
values:
13+
- .helm/values.yaml

0 commit comments

Comments
 (0)