Skip to content

Commit

Permalink
Add build cache for building play image (#1797)
Browse files Browse the repository at this point in the history
**What this PR does / why we need it**:

**Which issue(s) this PR fixes**:

Fixes #

**Does this PR introduce a user-facing change?**:
<!--
If no, just write "NONE" in the release-note block below.
-->
```release-note
NONE
```

This PR was merged by Kapetanios.
  • Loading branch information
cakecatz authored Mar 30, 2021
1 parent 3ff2fed commit 6a60f5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .kapetanios/postsubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ spec:
description: Build static files
runner: gcr.io/pipecd/runner:1.0.0
commands:
- bazelisk build //pkg/app/web:public_files --action_env=ENABLE_MOCK=true
- bazelisk --output_base=/workspace/bazel_out build --config=ci //pkg/app/web:public_files --action_env=ENABLE_MOCK=true
- cp -rf $(bazelisk info bazel-bin)/pkg/app/web/public_files ./play/public
secrets:
- name: bazel_cache_service_account
type: PROJECT
- name: docker-build
description: Build docker image
runner: gcr.io/cloud-builders/docker
Expand Down

0 comments on commit 6a60f5c

Please sign in to comment.