Skip to content

manifest: use alt image #30

manifest: use alt image

manifest: use alt image #30

Workflow file for this run

name: CI
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:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-pnpm
- run: pnpm install
- run: pnpm lint
- run: pnpm test
docker:
runs-on: ubuntu-latest
if: github.repository == 'commaai/flash'
needs: test
permissions:
packages: write
contents: read
steps:
- uses: docker/setup-buildx-action@v2
- 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/flash
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=ref,event=pr,prefix=
type=sha,format=long,prefix=
- uses: docker/build-push-action@v4
env:
DOCKER_METADATA_PR_HEAD_SHA: true
with:
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.event_name != 'pull_request' }}
build-args: |
NEXT_PUBLIC_GIT_SHA=${{ github.sha }}