Skip to content

Commit

Permalink
Variable default branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
noodl committed Jan 25, 2024
1 parent 9d4e8a3 commit c59206b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ buildx() {
switches "$@"
validate_switches tag file cache_id
varx REPO
varx BUILDKITE_PIPELINE_DEFAULT_BRANCH

echo "+++ :building_construction: Build $tag"

Expand All @@ -86,7 +87,7 @@ buildx() {
--build-arg CI_STRING_TIME \
--cache-to mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=$BK_CACHE:$APP-$tag-$cache_id \
--cache-from $BK_CACHE:$APP-$tag-$cache_id \
--cache-from $BK_CACHE:$APP-$tag-master \
--cache-from $BK_CACHE:$APP-$tag-$BUILDKITE_PIPELINE_DEFAULT_BRANCH \
--secret id=railslts,env=BUNDLE_GEMS__RAILSLTS__COM \
--secret id=jfrog,env=BUNDLE_SAGEONEGEMS__JFROG__IO \
--ssh default \
Expand Down

0 comments on commit c59206b

Please sign in to comment.