Skip to content

Commit 1df144e

Browse files
authored
Adapt to new Grabl syntax (#98)
## What is the goal of this PR? Grabl recently changed the `automation.yml` syntax to have `image` instead of `machine` ## What are the changes implemented in this PR? Replace all `machine:` usages with `image:`
1 parent 2079215 commit 1df144e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.grabl/automation.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ build:
2626
owner: graknlabs
2727
branch: master
2828
dependency-analysis:
29-
machine: graknlabs-ubuntu-20.04-java11
29+
image: graknlabs-ubuntu-20.04-java11
3030
script: |
3131
bazel run @graknlabs_dependencies//grabl/analysis:dependency-analysis
3232
correctness:
3333
build:
34-
machine: graknlabs-ubuntu-20.04
34+
image: graknlabs-ubuntu-20.04
3535
#NPM packages can't be built under RBE
3636
script: |
3737
bazel build //...
3838
bazel run @graknlabs_dependencies//tool/checkstyle:test-coverage
3939
bazel test $(bazel query 'kind(checkstyle_test, //...)')
4040
build-dependency:
41-
machine: graknlabs-ubuntu-20.04
41+
image: graknlabs-ubuntu-20.04
4242
script: |
4343
dependencies/maven/update.sh
4444
git diff --exit-code dependencies/maven/artifacts.snapshot
@@ -47,7 +47,7 @@ build:
4747
filter:
4848
owner: graknlabs
4949
branch: master
50-
machine: graknlabs-ubuntu-20.04
50+
image: graknlabs-ubuntu-20.04
5151
dependencies: [build, build-dependency]
5252
script: |
5353
export DEPLOY_MAVEN_USERNAME=$REPO_GRAKN_USERNAME
@@ -57,7 +57,7 @@ build:
5757
filter:
5858
owner: graknlabs
5959
branch: master
60-
machine: graknlabs-ubuntu-20.04
60+
image: graknlabs-ubuntu-20.04
6161
script: |
6262
curl https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
6363
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
@@ -72,7 +72,7 @@ build:
7272
filter:
7373
owner: graknlabs
7474
branch: master
75-
machine: graknlabs-ubuntu-20.04
75+
image: graknlabs-ubuntu-20.04
7676
type: foreground
7777
script: |
7878
pyenv global 3.6.10
@@ -89,22 +89,22 @@ release:
8989
branch: master
9090
deployment:
9191
deploy-github:
92-
machine: graknlabs-ubuntu-20.04
92+
image: graknlabs-ubuntu-20.04
9393
script: |
9494
pip install certifi
9595
export RELEASE_NOTES_TOKEN=$REPO_GITHUB_TOKEN
9696
bazel run @graknlabs_dependencies//tool/release:create-notes -- protocol $(cat VERSION) ./RELEASE_TEMPLATE.md
9797
export DEPLOY_GITHUB_TOKEN=$REPO_GITHUB_TOKEN
9898
bazel run --define version=$(cat VERSION) //:deploy-github -- $GRABL_COMMIT
9999
deploy-maven-release:
100-
machine: graknlabs-ubuntu-20.04
100+
image: graknlabs-ubuntu-20.04
101101
script: |
102102
export DEPLOY_MAVEN_USERNAME=$REPO_GRAKN_USERNAME
103103
export DEPLOY_MAVEN_PASSWORD=$REPO_GRAKN_PASSWORD
104104
bazel run --define version=$(cat VERSION) //grpc/java:deploy-maven -- release
105105
dependencies: [deploy-github]
106106
deploy-npm-release:
107-
machine: graknlabs-ubuntu-20.04
107+
image: graknlabs-ubuntu-20.04
108108
script: |
109109
curl https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
110110
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
@@ -116,7 +116,7 @@ release:
116116
bazel run --define version=$(cat VERSION) //grpc/nodejs:deploy-npm -- release
117117
dependencies: [deploy-github]
118118
deploy-pip-release:
119-
machine: graknlabs-ubuntu-20.04
119+
image: graknlabs-ubuntu-20.04
120120
script: |
121121
pyenv global 3.6.10
122122
sudo unlink /usr/bin/python3

0 commit comments

Comments
 (0)