Skip to content

Commit 5e95ef6

Browse files
authored
feat: add commit hash as a build arg (#295)
1 parent 9087826 commit 5e95ef6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/actions/deploy/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ runs:
180180
${{ inputs.harbor_registry != '' && format('{0}/{1}:{2}', inputs.harbor_registry, inputs.target_repository, inputs.target_tag) || '' }}
181181
push: true
182182
platforms: ${{ inputs.platform }}
183-
build-args: ${{ inputs.build_args }}
183+
build-args: ${{ inputs.build_args && format('{0},COMMIT_HASH={1}', inputs.build_args, steps.git_commit_hash_full.outputs.git_commit_hash_full) || format('COMMIT_HASH={0}', steps.git_commit_hash_full.outputs.git_commit_hash_full) }}
184184
build_method: ${{ inputs.build_method }}
185185
labels: |
186186
ethpandaops.io.repo=${{ inputs.source_repository }}

generate_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242

4343
# Build argument defaults for special cases
4444
BUILD_ARGS = {
45-
'mev-rs/main-minimal': 'FEATURES=minimal-preset'
45+
'mev-rs/main-minimal': 'FEATURES=minimal-preset',
46+
'reth-rbuilder/develop': 'RBUILDER_BIN=reth-rbuilder'
4647
}
4748

4849
# Clients that need to have minimal builds created automatically

0 commit comments

Comments
 (0)