@@ -7,8 +7,8 @@ name: Release
77jobs :
88 checks :
99 name : run
10- runs-on : self-hosted
11- container : ubuntu:18.04
10+ runs-on : ubuntu-latest
11+ container : mattinsler/bazelisk:latest
1212 services :
1313 consul :
1414 image : consul:latest
@@ -34,31 +34,31 @@ jobs:
3434 with :
3535 username : ${{ secrets.DOCKER_USER }}
3636 password : ${{ secrets.DOCKER_TOKEN }}
37-
38- - name : Install bazelisk
39- run : |
40- curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
41- mkdir -p "${GITHUB_WORKSPACE}/bin/"
42- mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
43- chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
44-
45- - name : test all
46- uses : ngalaiko/bazel-action/1.2.1@master
37+ - uses : GoogleCloudPlatform/github-actions/setup-gcloud@master
4738 with :
48- args : test //...
49-
39+ version : " 290.0.1"
40+ project_id : ${{ secrets.GCP_PROJECT_ID }}
41+ service_account_key : ${{ secrets.GCP_SA_KEY }}
42+ export_default_credentials : true
43+ - run : gcloud info
44+ - name : test all
45+ run : |
46+ bazel test --config github //...
47+ - name : build all
48+ run : |
49+ bazel build --config github //...
5050 - name : Release to GitHub
5151 env :
5252 DEPLOY_GITHUB_TOKEN : ${{secrets.DEPLOY_GITHUB_TOKEN}}
5353 run : |
54- "${GITHUB_WORKSPACE}/bin/ bazel" run //:deploy-github -- ${{ github.sha }}
54+ bazel run --config github //:deploy-github -- ${{ github.sha }}
5555
5656 - name : Release `protoconf` to Docker Hub
5757 run : |
58- "${GITHUB_WORKSPACE}/bin/ bazel" run //docker:protoconf_release
58+ bazel run --config github //docker:protoconf_release
5959 - name : Release `agent` to Docker Hub
6060 run : |
61- "${GITHUB_WORKSPACE}/bin/ bazel" run //docker:agent_release
61+ bazel run --config github //docker:agent_release
6262 - name : Release `server` to Docker Hub
6363 run : |
64- "${GITHUB_WORKSPACE}/bin/ bazel" run //docker:server_release
64+ bazel run --config github //docker:server_release
0 commit comments