Skip to content

Commit

Permalink
Merge pull request #16062 from MinaProtocol/dkijania/fix_debian_name_…
Browse files Browse the repository at this point in the history
…logic

Fix debian branch name logic dev
  • Loading branch information
dkijania authored Sep 18, 2024
2 parents 264696e + d15a406 commit 5b8924f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
7 changes: 6 additions & 1 deletion buildkite/scripts/export-git-env-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ export BUILD_URL=${BUILDKITE_BUILD_URL}
set -u

export MINA_DEB_CODENAME=${MINA_DEB_CODENAME:=bullseye}
[[ -n "$BUILDKITE_BRANCH" ]] && export GITBRANCH=$(echo "$BUILDKITE_BRANCH" | sed 's!/!-!g; s!_!-!g; s!#!-!g') || export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' )
if [[ -n "$BUILDKITE_BRANCH" ]]; then
export GITBRANCH=$(echo "$BUILDKITE_BRANCH" | sed 's!/!-!g; s!_!-!g; s!#!-!g')
else
export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' )
fi



export RELEASE=unstable
Expand Down
2 changes: 2 additions & 0 deletions buildkite/scripts/run-test-executive-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ fi
# Don't prompt for answers during apt-get install
export DEBIAN_FRONTEND=noninteractive

rm -f /etc/apt/sources.list.d/hashicorp.list

apt-get update
apt-get install -y git apt-transport-https ca-certificates tzdata curl

Expand Down
2 changes: 1 addition & 1 deletion buildkite/src/Command/MinaArtifact.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ let docker_step
[ DockerImage.ReleaseSpec::{
, deps = deps
, service = Artifacts.Type.BatchTxn
, network = Network.lowerName Network.Type.Devnet
, network = Network.lowerName spec.network
, deb_codename = spec.debVersion
, deb_profile = spec.profile
, build_flags = spec.buildFlags
Expand Down
6 changes: 5 additions & 1 deletion scripts/export-git-env-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ function find_most_recent_numeric_tag() {
export GITHASH=$(git rev-parse --short=7 HEAD)
export THIS_COMMIT_TAG=$(git tag --points-at HEAD)

[[ -n "$BRANCH_NAME" ]] && export GITBRANCH=$(echo "$BRANCH_NAME" | sed 's!/!-!g; s!_!-!g; s!#!-!g') || export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' )
if [[ -n "$BRANCH_NAME" ]]; then
export GITBRANCH=$(echo "$BRANCH_NAME" | sed 's!/!-!g; s!_!-!g; s!#!-!g')
else
export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' )
fi

export GITTAG=$(find_most_recent_numeric_tag HEAD)

Expand Down

0 comments on commit 5b8924f

Please sign in to comment.