Skip to content

Commit

Permalink
Merge pull request #122 from ethpandaops/skylenet/build-script-lodestar
Browse files Browse the repository at this point in the history
lodestar: pass COMMIT env var as build arg
  • Loading branch information
skylenet authored Jan 12, 2024
2 parents c48fee8 + 0fa9446 commit 92b5059
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
12 changes: 7 additions & 5 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,14 @@
- source:
repository: chainsafe/lodestar
ref: unstable
build_script: ./lodestar/build.sh
target:
tag: unstable
repository: ethpandaops/lodestar
- source:
repository: chainsafe/lodestar
ref: g11tech/verge
build_script: ./lodestar/build.sh
target:
tag: g11tech-verge
repository: ethpandaops/lodestar
Expand Down Expand Up @@ -203,7 +205,7 @@
#############
# flashbots #
#############
- source:
- source:
repository: flashbots/builder
ref: main
target:
Expand All @@ -212,7 +214,7 @@
#############
# tx-fuzz #
#############
- source:
- source:
repository: MariusVanDerWijden/tx-fuzz
ref: master
target:
Expand All @@ -221,7 +223,7 @@
##############
# goomy-blob #
##############
- source:
- source:
repository: ethpandaops/goomy-blob
ref: master
target:
Expand All @@ -230,7 +232,7 @@
##############################
# ethereum-genesis-generator #
##############################
- source:
- source:
repository: ethpandaops/ethereum-genesis-generator
ref: master
target:
Expand All @@ -257,7 +259,7 @@
#############
# armiarma #
#############
- source:
- source:
repository: migalabs/armiarma
ref: master
target:
Expand Down
9 changes: 9 additions & 0 deletions lodestar/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd ${SCRIPT_DIR}/../source

docker build --build-arg "COMMIT=${source_git_commit_hash}" -t "${target_repository}:${target_tag}" .
docker push "${target_repository}:${target_tag}"
docker tag "${target_repository}:${target_tag}" "${target_repository}:${target_tag}-${source_git_commit_hash}"
docker push "${target_repository}:${target_tag}-${source_git_commit_hash}"

0 comments on commit 92b5059

Please sign in to comment.