replace oci_pull with pure starlark #234
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: bazelbuild/setup-bazelisk@v1 | |
# Setup Credential Helper to authenticate to Github Container Registry | |
- run: echo '{"credHelpers":{"ghcr.io":"ghcr"}}' > ~/.docker/config.json | |
- run: echo "${HOME}/.local/bin" >> $GITHUB_PATH | |
- run: mkdir -p ~/.local/bin | |
- run: echo -e "#!/usr/bin/env bash\n echo '{\"ServerURL\":\"ghcr.io\",\"Username\":\"Bearer\",\"Secret\":\"${{ secrets.GITHUB_TOKEN }}\"}'" > ~/.local/bin/docker-credential-ghcr | |
- run: chmod +x ~/.local/bin/docker-credential-ghcr | |
# Run all tests | |
- run: bazel test --config=ci //... |