35 lines
914 B
YAML
35 lines
914 B
YAML
name: build-image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number
|
|
|| github.run_id }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: butler-ci
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- name: Select relevant delivery work
|
|
id: delivery
|
|
env:
|
|
DELIVERY_EVENT: ${{ github.event_name }}
|
|
DELIVERY_REF: ${{ github.ref }}
|
|
DELIVERY_SHA: ${{ github.sha }}
|
|
DELIVERY_BASE: ${{ github.event.pull_request.base.sha || github.event.before }}
|
|
run: |
|
|
cd .
|
|
bash scripts/ci-select.sh
|
|
- name: Build image
|
|
if: ${{ steps.delivery.outputs.run == 'true' }}
|
|
run: |
|
|
make ci-fast IMAGE_TAG=${{ gitea.sha }}
|