File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33cd " $( dirname " ${BASH_SOURCE[0]} " ) /.."
4- set -euxo pipefail
4+ set -euo pipefail
55
66box=" $1 "
77exit_code=0
@@ -12,6 +12,7 @@ cleanup() {
1212 vagrant destroy -f " $box "
1313}
1414
15+ echo --- " :vagrant: installing plugins"
1516plugins=(vagrant-google vagrant-env vagrant-scp)
1617for i in " ${plugins[@]} " ; do
1718 if ! vagrant plugin list --no-tty | grep " $i " ; then
@@ -20,6 +21,7 @@ for i in "${plugins[@]}"; do
2021done
2122
2223trap cleanup EXIT
24+ echo --- " :vagrant: starting box $box "
2325vagrant up " $box " --provider=google || exit_code=$?
2426
2527if [ " $exit_code " != 0 ]; then
Original file line number Diff line number Diff line change @@ -44,8 +44,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
4444 g . network = server [ 'network' ]
4545 g . external_ip = external_ip
4646 g . use_private_ip = use_private_ip
47+ g . service_account = server [ 'service_account' ]
48+ g . labels = {
49+ "team" => "dev-infra" ,
50+ "type" => "vagrant"
51+ }
4752 g . scopes = [
48- "compute-rw"
53+ "compute-rw" ,
54+ "storage-ro"
4955 ]
5056 o . ssh . username = username
5157 o . ssh . private_key_path = ssh_key_path
Original file line number Diff line number Diff line change 88 network : default
99 username : buildkite
1010 ssh_key_path : " ~/.ssh/id_rsa"
11+ service_account :
[email protected] 1112 shell_commands :
1213 - " /deploy-sourcegraph-docker/test/smoke-test.sh"
1314
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euxfo pipefail
33
4+ configure_docker () {
5+ gcloud auth configure-docker
6+ gcloud auth configure-docker us-central1-docker.pkg.dev
7+ }
8+
49deploy_sourcegraph () {
510 cd $( dirname " ${BASH_SOURCE[0]} " ) /..
611 # Deploy sourcegraph
@@ -64,6 +69,7 @@ catch_errors() {
6469
6570trap catch_errors EXIT
6671
72+ configure_docker
6773deploy_sourcegraph
6874test_count
6975test_containers
You can’t perform that action at this time.
0 commit comments