Skip to content

Commit d273924

Browse files
committed
do not build on main push
1 parent 810261f commit d273924

File tree

3 files changed

+133
-100
lines changed

3 files changed

+133
-100
lines changed

.github/workflows/docker-release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
#schedule:
1010
# - cron: '17 14 * * *'
1111
push:
12-
branches: [ "main" ]
12+
# branches: [ "main" ]
1313
# Publish semver tags as releases.
1414
tags: [ 'v*.*.*' ]
1515
paths-ignore:

services/memos/app-full.yaml

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
apiVersion: application.kubero.dev/v1alpha1
2+
kind: KuberoApp
3+
metadata:
4+
labels:
5+
manager: kubero
6+
name: memos
7+
spec:
8+
addons: []
9+
affinity: {}
10+
autodeploy: true
11+
autoscale: false
12+
autoscaling:
13+
enabled: false
14+
branch: main
15+
buildpack: custom
16+
cronjobs: []
17+
deploymentstrategy: docker
18+
domain: memos.lacolhost.com
19+
envVars: []
20+
extraVolumes:
21+
- accessModes:
22+
- ReadWriteOnce
23+
emptyDir: false
24+
mountPath: /var/opt/memos
25+
name: memos-data
26+
size: 1Gi
27+
storageClass: standard
28+
fullnameOverride: ""
29+
gitrepo:
30+
admin: true
31+
clone_url: https://github.com/kubero-dev/template-nodeapp.git
32+
default_branch: main
33+
description: Simple example Node app
34+
homepage: ""
35+
id: 501665730
36+
language: JavaScript
37+
name: template-nodeapp
38+
node_id: R_kgDOHebPwg
39+
owner: kubero-dev
40+
private: false
41+
push: true
42+
ssh_url: [email protected]:kubero-dev/template-nodeapp.git
43+
visibility: public
44+
image:
45+
build:
46+
command: npm install
47+
repository: node
48+
tag: latest
49+
containerPort: "5230"
50+
fetch:
51+
repository: ghcr.io/kubero-dev/buildpacks/fetch
52+
tag: main
53+
pullPolicy: Always
54+
repository: neosmemo/memos
55+
run:
56+
command: node index.js
57+
repository: node
58+
tag: latest
59+
tag: latest
60+
imagePullSecrets: []
61+
ingress:
62+
annotations: {}
63+
className: ""
64+
enabled: true
65+
hosts:
66+
- host: memos.lacolhost.com
67+
paths:
68+
- path: /
69+
pathType: ImplementationSpecific
70+
tls: []
71+
name: memos
72+
nameOverride: ""
73+
nodeSelector: {}
74+
phase: production
75+
pipeline: asdf
76+
podAnnotations: {}
77+
podSecurityContext: {}
78+
podsize:
79+
default: true
80+
description: 'Small (CPU: 0.25, Memory: 0.5Gi)'
81+
name: small
82+
resources:
83+
limits:
84+
cpu: 500m
85+
memory: 1Gi
86+
requests:
87+
cpu: 250m
88+
memory: 0.5Gi
89+
replicaCount: 1
90+
resources:
91+
limits:
92+
cpu: 500m
93+
memory: 1Gi
94+
requests:
95+
cpu: 250m
96+
memory: 0.5Gi
97+
service:
98+
port: 80
99+
type: ClusterIP
100+
serviceAccount:
101+
annotations: {}
102+
create: true
103+
name: ""
104+
tolerations: []
105+
web:
106+
autoscaling:
107+
maxReplicas: 3
108+
minReplicas: 1
109+
targetCPUUtilizationPercentage: 80
110+
targetMemoryUtilizationPercentage: 80
111+
replicaCount: 1
112+
worker:
113+
autoscaling:
114+
maxReplicas: 0
115+
minReplicas: 0
116+
targetCPUUtilizationPercentage: 80
117+
targetMemoryUtilizationPercentage: 80
118+
replicaCount: 0

services/memos/app.yaml

+14-99
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,33 @@
11
apiVersion: application.kubero.dev/v1alpha1
22
kind: KuberoApp
33
metadata:
4-
labels:
5-
manager: kubero
64
name: memos
75
spec:
8-
addons: []
9-
affinity: {}
10-
autodeploy: true
11-
autoscale: false
12-
autoscaling:
13-
enabled: false
14-
branch: main
15-
buildpack: custom
16-
cronjobs: []
17-
deploymentstrategy: docker
6+
name: memos
187
domain: memos.lacolhost.com
19-
envVars: []
20-
extraVolumes:
21-
- accessModes:
22-
- ReadWriteOnce
23-
emptyDir: false
24-
mountPath: /var/opt/memos
25-
name: memos-data
26-
size: 1Gi
27-
storageClass: standard
28-
fullnameOverride: ""
29-
gitrepo:
30-
admin: true
31-
clone_url: https://github.com/kubero-dev/template-nodeapp.git
32-
default_branch: main
33-
description: Simple example Node app
34-
homepage: ""
35-
id: 501665730
36-
language: JavaScript
37-
name: template-nodeapp
38-
node_id: R_kgDOHebPwg
39-
owner: kubero-dev
40-
private: false
41-
push: true
42-
ssh_url: [email protected]:kubero-dev/template-nodeapp.git
43-
visibility: public
8+
deploymentstrategy: docker
449
image:
45-
build:
46-
command: npm install
47-
repository: node
48-
tag: latest
49-
containerPort: "5230"
50-
fetch:
51-
repository: ghcr.io/kubero-dev/buildpacks/fetch
52-
tag: main
53-
pullPolicy: Always
5410
repository: neosmemo/memos
55-
run:
56-
command: node index.js
57-
repository: node
58-
tag: latest
5911
tag: latest
60-
imagePullSecrets: []
12+
containerPort: "5230"
6113
ingress:
62-
annotations: {}
63-
className: ""
64-
enabled: true
6514
hosts:
6615
- host: memos.lacolhost.com
6716
paths:
6817
- path: /
6918
pathType: ImplementationSpecific
70-
tls: []
71-
name: memos
72-
nameOverride: ""
73-
nodeSelector: {}
74-
phase: production
75-
pipeline: asdf
76-
podAnnotations: {}
77-
podSecurityContext: {}
78-
podsize:
79-
default: true
80-
description: 'Small (CPU: 0.25, Memory: 0.5Gi)'
81-
name: small
82-
resources:
83-
limits:
84-
cpu: 500m
85-
memory: 1Gi
86-
requests:
87-
cpu: 250m
88-
memory: 0.5Gi
89-
replicaCount: 1
90-
resources:
91-
limits:
92-
cpu: 500m
93-
memory: 1Gi
94-
requests:
95-
cpu: 250m
96-
memory: 0.5Gi
97-
service:
98-
port: 80
99-
type: ClusterIP
100-
serviceAccount:
101-
annotations: {}
102-
create: true
103-
name: ""
104-
tolerations: []
19+
addons: []
20+
envVars: []
21+
cronjobs: []
22+
extraVolumes:
23+
- accessModes:
24+
- ReadWriteOnce
25+
emptyDir: false
26+
mountPath: /var/opt/memos
27+
name: memos-data
28+
size: 1Gi
29+
storageClass: standard
10530
web:
106-
autoscaling:
107-
maxReplicas: 3
108-
minReplicas: 1
109-
targetCPUUtilizationPercentage: 80
110-
targetMemoryUtilizationPercentage: 80
11131
replicaCount: 1
11232
worker:
113-
autoscaling:
114-
maxReplicas: 0
115-
minReplicas: 0
116-
targetCPUUtilizationPercentage: 80
117-
targetMemoryUtilizationPercentage: 80
11833
replicaCount: 0

0 commit comments

Comments
 (0)