mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
Bumps [actions/cache](https://github.com/actions/cache) from v1 to v2.1.1. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v1...5ca27f25cb3a0babe750cad7e4fddd3e55f29e9a) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
997 B
YAML
34 lines
997 B
YAML
name: Build Dev Container
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- .devcontainer/Dockerfile
|
|
schedule:
|
|
- cron: "0 12 * * 2" # 12 noon every tuesday
|
|
|
|
jobs:
|
|
dev_container_build:
|
|
name: Bazel Build (Dev Container)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Mount bazel cache
|
|
uses: actions/cache@v2.1.1
|
|
with:
|
|
path: "/home/runner/.cache/bazel"
|
|
key: bazel
|
|
|
|
- name: Install bazelisk
|
|
run: |
|
|
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
|
|
mkdir -p "${GITHUB_WORKSPACE}/bin/"
|
|
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
|
|
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
|
|
|
|
- name: Build & Publish Dev Container
|
|
run: |
|
|
"${GITHUB_WORKSPACE}/bin/bazel" run \
|
|
--stamp \
|
|
--workspace_status_command hack/workspace_status.sh\
|
|
//.devcontainer:publish-dev-container
|