Skip to content

ci: bazel login

ci: bazel login #12

Workflow file for this run

---
name: bazel
on:
push:
paths:
- 'WORKSPACE'
- 'BUILD.bazel'
- 'MODULE.bazel'
- 'MODULE.bazel.lock'
- 'deps.bazel'
- 'go.mod'
- acceptance/**/*
- sites/**/*
- .github/workflows/bazel.yaml
permissions:
contents: read
packages: write
jobs:
bazel-test:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: bazel-test
run: |
bazel query 'tests(//...)' | xargs -n 1 bazel test
- name: gchr-login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: bazel-push
run: |
bazel query 'kind(oci_push, //...)' | xargs -n 1 bazel run