buildbots config, cloudbuild and artifacts registry
This commit is contained in:
parent
2f9e6fbf78
commit
c923185aee
4 changed files with 22 additions and 9 deletions
5
containers/buildbot-linux/cloudbuild.yaml
Normal file
5
containers/buildbot-linux/cloudbuild.yaml
Normal 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'
|
|
@ -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']
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue