Skip to content

Commit

Permalink
Update git version
Browse files Browse the repository at this point in the history
  • Loading branch information
fagianijunior committed Oct 5, 2024
1 parent f42743f commit 907ebf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN set -ex \

# Install Git
RUN set -ex \
&& GIT_VERSION=2.27.0 \
&& GIT_VERSION=2.46.2 \
&& GIT_TAR_FILE=git-$GIT_VERSION.tar.gz \
&& GIT_SRC=https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz \
&& curl -L -o $GIT_TAR_FILE $GIT_SRC \
Expand Down
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

set -eo pipefail
set -x

VALID_ARGS=$(getopt -o i: --long image-name: -n 'build.sh' -- "$@")
if [[ $? -ne 0 ]]; then
Expand Down Expand Up @@ -29,7 +30,7 @@ fi
if [ $(DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect $build_image_name 2> /dev/null ; echo $?) -eq 0 ]; then
echo "----> Skipping build as image already exists"
else
build_builder_name=`grep builder project.toml | cut -d= -f2 | tr -d '" '`
build_builder_name=`grep builder ${REPO_SUB_FOLDER:+$REPO_SUB_FOLDER/}project.toml | cut -d= -f2 | tr -d '" '`
build_builder_tag=`echo $build_builder_name | tr /: -`
docker pull ${build_image_name%:*}:$build_builder_tag 2> /dev/null || true
docker tag ${build_image_name%:*}:$build_builder_tag $build_builder_name 2> /dev/null || true
Expand Down

0 comments on commit 907ebf1

Please sign in to comment.