1
0
Fork 0

buildbots config, cloudbuild and artifacts registry

This commit is contained in:
Mikhail Goncharov 2023-10-05 15:50:25 +02:00
parent 2f9e6fbf78
commit c923185aee
4 changed files with 22 additions and 9 deletions

View file

@ -0,0 +1,5 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '-t', 'us-central1-docker.pkg.dev/llvm-premerge-checks/docker/buildbot-linux', '.' ]
images:
- 'us-central1-docker.pkg.dev/llvm-premerge-checks/docker/buildbot-linux:latest'

View file

@ -1,6 +1,5 @@
steps: steps:
- name: 'gcr.io/cloud-builders/docker' - name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/${PROJECT_ID}/buildkite-premerge-debian:latest', '.'] args: [ 'build', '-t', 'us-central1-docker.pkg.dev/llvm-premerge-checks/docker/buildkite-linux', '.' ]
images:
- name: 'gcr.io/cloud-builders/docker' - 'us-central1-docker.pkg.dev/llvm-premerge-checks/docker/buildkite-linux:latest'
args: ['push', 'gcr.io/${PROJECT_ID}/buildkite-premerge-debian:latest']

View file

@ -15,18 +15,18 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: buildbot-windows-test name: buildbot-windows
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:
type: Recreate type: Recreate
selector: selector:
matchLabels: matchLabels:
app: buildbot-windows-test app: buildbot-windows
template: template:
metadata: metadata:
labels: labels:
app: buildbot-windows-test app: buildbot-windows
spec: spec:
containers: containers:
- name: runner - name: runner
@ -44,6 +44,15 @@ spec:
env: env:
- name: WORKDIR - name: WORKDIR
value: "c:/ws" # matching workdir value: "c:/ws" # matching workdir
- name: BUILDBOT_PASSWORD
valueFrom:
secretKeyRef:
name: buildbot-premerge-windows-1
key: password
- name: BUILDBOT_NAME
value: premerge-windows-1
- name: BUILDBOT_ADDRESS
value: lab.llvm.org:9994
# Empty dir volume can use all disk space from VM. By default container # Empty dir volume can use all disk space from VM. By default container
# disk will only be 20Gb and run out of space. # disk will only be 20Gb and run out of space.
volumes: volumes:

View file

@ -34,7 +34,7 @@ spec:
spec: spec:
containers: containers:
- name: runner - name: runner
image: gcr.io/llvm-premerge-checks/buildkite-linux:latest image: us-central1-docker.pkg.dev/llvm-premerge-checks/docker/buildkite-linux:latest
resources: resources:
limits: limits:
cpu: 31 cpu: 31