Skip to content

[oci resolver] Roll back changes until #9380 #1553

[oci resolver] Roll back changes until #9380

[oci resolver] Roll back changes until #9380 #1553

Workflow file for this run

name: Build Website
on:
pull_request:
branches:
- master
paths:
- ".github/workflows/website-pr.yaml"
- "docs/**"
- "website/**"
- "server/metrics/**"
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'website skip')"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Restore caches
id: cache-restore
uses: ./.github/actions/cache-restore
- name: Build Website
env:
GO_REPOSITORY_USE_HOST_CACHE: 1
GOMODCACHE: /home/runner/go-mod-cache
run: |
API_KEY="${{ secrets.BUILDBUDDY_ORG_API_KEY }}"
API_KEY_ARGS=()
if [[ "$API_KEY" ]]; then
API_KEY_ARGS=("--remote_header=x-buildbuddy-api-key=$API_KEY")
fi
bazelisk build --repository_cache='~/repo-cache/' //website:website --config=ci "${API_KEY_ARGS[@]}"
- name: Save caches
uses: ./.github/actions/cache-save
if: always()
with:
repo-cache-dir: ${{ steps.cache-restore.outputs.repo-cache-dir }}
go-mod-cache-dir: ${{ steps.cache-restore.outputs.go-mod-cache-dir }}
yarn-cache-dir: ${{ steps.cache-restore.outputs.yarn-cache-dir }}