Skip to content

Commit

Permalink
Tweak LEAF update task
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferya committed Dec 19, 2024
1 parent 0a7caaa commit b284607
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docker/drupal/scripts/auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if [ "${BRANCH}" != 'main' ]; then
exit 1
fi

# Get local LEAF version
LEAF_VERSION_LOCAL=$(jq -r '.variable.LEAF_VERSION.default' docker-bake-leaf-version-override.json)
echo "LOCAL LEAF: ${LEAF_VERSION_LOCAL}"

Expand All @@ -19,20 +20,24 @@ LEAF_VERSION=$(
)
echo "Remote LEAF: ${LEAF_VERSION}"

# Test if LEAF version update needed
if [ "${LEAF_VERSION_LOCAL}" = "${LEAF_VERSION}" ]; then
echo "Version up-to-date ${LEAF_VERSION_LOCAL}"
exit 2
else
echo "Version update from ${LEAF_VERSION_LOCAL} to ${LEAF_VERSION}"
#git checkout -b "leaf_update_${LEAF_VERSION}"
echo "Starting LEAF version update from ${LEAF_VERSION_LOCAL} to ${LEAF_VERSION}"
git checkout -b "leaf_update_${LEAF_VERSION}"
update_leaf_version_test ${LEAF_VERSION}
#git commit -a -m "Bump LEAF version from ${LEAF_VERSION_LOCAL} to ${LEAF_VERSION}" && git push
update_leaf_version ${LEAF_VERSION}
git commit -a -m "Bump LEAF version from ${LEAF_VERSION_LOCAL} to ${LEAF_VERSION}" && git push
fi

#
function update_leaf_version_test() {
echo $1
}

#
function update_leaf_version() {
# Check Docker Buildx Bake
# If TAG and bake var different then update
Expand Down

0 comments on commit b284607

Please sign in to comment.