Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 3e8e73c

Browse files
committed
Check out branch when publishing AMIs
1 parent 9f01ed2 commit 3e8e73c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_ci/publish-amis.sh

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ if [[ -z "$PACKER_BUILD_NAME" ]]; then
2626
exit 1
2727
fi
2828

29+
echo "Checking out branch $BRANCH_NAME to make sure we do all work in a branch and not in detached HEAD state"
30+
git checkout "$BRANCH_NAME"
31+
2932
# Build the example AMI. WARNING! In a production setting, you should build your own AMI to ensure it has exactly the
3033
# configuration you want. We build this example AMI solely to make initial use of this Module as easy as possible.
3134
build-packer-artifact \

0 commit comments

Comments
 (0)