Don't push images or the website on tag builds.

Updates #7327

PiperOrigin-RevId: 445535035
This commit is contained in:
Adin Scannell
2022-04-29 16:51:41 -07:00
committed by gVisor bot
parent 575d76def2
commit efdf8dd715
+4 -3
View File
@@ -9,21 +9,21 @@ _templates:
limit: 10
- exit_status: "*"
limit: 2
# This is enforced by the environment hooks on the release agents
# as well, only the master branch may be built there.
if: build.branch == "master" || build.tag != null
steps:
- <<: *common
label: ":ship: Push all images (x86_64)"
if: build.branch == "master" && build.tag == null
commands:
- make ARCH=x86_64 push-all-images
- <<: *common
label: ":ship: Push all images (aarch64)"
if: build.branch == "master" && build.tag == null
commands:
- make ARCH=aarch64 push-all-images
- <<: *common
label: ":ship: Release"
if: build.branch == "master" || build.tag != null
commands:
- make BAZEL_OPTIONS=--config=x86_64 artifacts/x86_64
- make BAZEL_OPTIONS=--config=aarch64 artifacts/aarch64
@@ -31,6 +31,7 @@ steps:
- cd repo && gsutil cp -r . gs://gvisor/releases/
- <<: *common
label: ":ship: Website Deploy"
if: build.branch == "master" && build.tag == null
commands:
# The built website image must be x86_64.
- make BAZEL_OPTIONS=--config=x86_64 website-deploy