This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
cloudbuild.yaml
63 lines (61 loc) · 1.57 KB
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
steps:
- name: gcr.io/cloud-builders/git
args:
- clone
- 'https://github.com/google-research/raksha.git'
- name: ubuntu
script: cp .bazelrc-docker raksha/.bazelrc
- name: gcr.io/cloud-builders/bazel
args:
- build
- '--remote_cache=https://storage.googleapis.com/arcsjs-bazel-cache'
- '--google_default_credentials'
- '//src/backends/policy_engine/souffle:check_policy_compliance'
dir: raksha
- name: ubuntu
script: >-
cp -pr
raksha/bazel-bin/src/backends/policy_engine/souffle/check_policy_compliance
raksha/
- name: ubuntu
script: >-
cp -pr
raksha/src/backends/policy_engine/souffle/testdata/arcsjs_policy_rules.txt
raksha/
# Pull most recent Docker image.
- id: 'pull-image'
name: 'gcr.io/cloud-builders/docker'
args: ['pull', '${_DOCKER_IMAGE}']
- name: gcr.io/cloud-builders/docker
args:
- build
- '--network=cloudbuild'
- '--cache-from=${_DOCKER_IMAGE}'
- '--tag=${_DOCKER_IMAGE}'
- .
id: build-image
- name: gcr.io/cloud-builders/docker
args:
- push
- '${_DOCKER_IMAGE}'
id: push-image
waitFor:
- build-image
- name: gcr.io/google.com/cloudsdktool/cloud-sdk
args:
- run
- deploy
- arcsjs-chromium
- '--project'
- arcsjs
- '--image'
- '${_DOCKER_IMAGE}'
- '--region'
- us-central1
- '--platform'
- managed
entrypoint: gcloud
images:
- '${_DOCKER_IMAGE}'
substitutions:
_DOCKER_IMAGE: 'gcr.io/arcsjs/arcsjs-chromium:latest'