File tree 5 files changed +79
-0
lines changed
5 files changed +79
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change 13
13
pkgs . cargo-audit
14
14
pkgs . just
15
15
pkgs . tree
16
+ pkgs . werf
17
+ pkgs . kubernetes-helm
18
+ pkgs . vault-medusa
19
+ # pkgs.vault-bin
20
+ # pkgs.ngrok
16
21
] ++ lib . optionals pkgs . stdenv . isDarwin ( with pkgs . darwin . apple_sdk ; [
17
22
frameworks . SystemConfiguration
18
23
frameworks . Security
Original file line number Diff line number Diff line change
1
+ configVersion : 1
2
+
3
+ ---
4
+ giterminism :
5
+ config :
6
+ allowUncommitted : true
7
+
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments