mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: Build test Docker image
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
hive_target:
|
|
required: true
|
|
type: string
|
|
description: "Docker bake target to build (e.g. hive-stable, hive-edge)"
|
|
artifact_name:
|
|
required: false
|
|
type: string
|
|
default: "artifacts"
|
|
description: "Name for the uploaded artifact"
|
|
|
|
jobs:
|
|
build:
|
|
if: github.repository == 'paradigmxyz/reth'
|
|
timeout-minutes: 45
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- run: mkdir -p artifacts
|
|
|
|
- name: Get git info
|
|
id: git
|
|
run: |
|
|
echo "sha=${{ github.sha }}" >> "$GITHUB_OUTPUT"
|
|
echo "describe=$(git describe --always --tags)" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Set up Depot CLI
|
|
uses: depot/setup-action@v1
|
|
|
|
- name: Build reth image
|
|
uses: depot/bake-action@v1
|
|
env:
|
|
DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
|
|
VERGEN_GIT_SHA: ${{ steps.git.outputs.sha }}
|
|
VERGEN_GIT_DESCRIBE: ${{ steps.git.outputs.describe }}
|
|
with:
|
|
project: ${{ vars.DEPOT_PROJECT_ID }}
|
|
files: docker-bake.hcl
|
|
targets: ${{ inputs.hive_target }}
|
|
push: false
|
|
|
|
- name: Upload reth image
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: ${{ inputs.artifact_name }}
|
|
path: ./artifacts
|