chore(deps): update gcr.io/bazel-public/bazel docker digest to c781300 #1072
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bazel | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository | |
runs-on: ubuntu-latest | |
container: | |
image: gcr.io/bazel-public/bazel@sha256:c781300d9c67c5e829a2733e905dd1501c6be4029aea9796b07cc3224cc9b991 | |
options: --user root | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GOOGLE_BUCKET: https://storage.googleapis.com/ls-lint-bazel | |
steps: | |
- run: set -eu | |
- uses: actions/checkout@v4 | |
- uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }} | |
- run: bazel run --remote_cache=$GOOGLE_BUCKET --google_default_credentials //:gazelle_fix_diff | |
- run: bazel test --remote_cache=$GOOGLE_BUCKET --google_default_credentials //... | |
- run: bazel build --remote_cache=$GOOGLE_BUCKET --google_default_credentials //... | |
- run: bazel run //cmd/ls_lint:ls-lint -- --config ${PWD}/.ls-lint.yml --workdir ${PWD} | |
build-no-cache: # external pull requests | |
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
container: | |
image: gcr.io/bazel-public/bazel@sha256:c781300d9c67c5e829a2733e905dd1501c6be4029aea9796b07cc3224cc9b991 | |
options: --user root | |
steps: | |
- run: set -eu | |
- uses: actions/checkout@v4 | |
- run: bazel run //:gazelle_fix_diff | |
- run: bazel test //... | |
- run: bazel build //... | |
- run: bazel run //cmd/ls_lint:ls-lint -- --config ${PWD}/.ls-lint.yml --workdir ${PWD} | |
release: | |
needs: build | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
container: | |
image: gcr.io/bazel-public/bazel@sha256:c781300d9c67c5e829a2733e905dd1501c6be4029aea9796b07cc3224cc9b991 | |
options: --user root # ref: https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user | |
env: | |
GH_TOKEN: ${{ github.token }} | |
STABLE_GIT_TAG: ${{ github.ref_name }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GOOGLE_BUCKET: https://storage.googleapis.com/ls-lint-bazel | |
steps: | |
- run: set -eu | |
- uses: actions/checkout@v4 | |
- uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }} | |
- run: bazel run --remote_cache=$GOOGLE_BUCKET --google_default_credentials //deployments/github:ls_lint_publish | |
- run: NPM_CONFIG_USERCONFIG=${GITHUB_WORKSPACE}/deployments/npm/.npmrc bazel run --remote_cache=$GOOGLE_BUCKET --google_default_credentials //deployments/npm:ls_lint.publish |