Skip to content

Add route_str to routes_segments #36

Add route_str to routes_segments

Add route_str to routes_segments #36

Workflow file for this run

name: build api docs
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.ref == 'refs/heads/master' && github.run_id || github.head_ref || github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
docker:
runs-on: ubuntu-20.04
if: github.repository == 'commaai/comma-api'
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- id: buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: login to container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/commaai/api-docs
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=raw,${{ github.sha }}
type=raw,enable=${{ github.event_name == 'pull_request' }},value=${{ github.head_ref }}
- name: Build and push
uses: docker/build-push-action@v3
with:
build-args: SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
builder: ${{ steps.buildx.outputs.name }}
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache