mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[Buildkite] Reorder git fetch in pipeline (#697)
This will ensure that we always will have up-to-date refs for the repo post-checkout.
This commit is contained in:
parent
df431b32c8
commit
7a0d217b67
|
@ -2,6 +2,8 @@
|
|||
|
||||
set +u
|
||||
|
||||
git fetch -q
|
||||
|
||||
if [[ ! $BUILDKITE_COMMAND =~ "buildkite-agent pipeline upload" ]] || \
|
||||
[[ $BUILDKITE_COMMAND == ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" ]]; then
|
||||
echo "--- :buildkite: Setting up Build environment"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#! /bin/bash
|
||||
|
||||
git fetch && \
|
||||
GITTAG=$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
|
||||
|
||||
echo "--- :linux: Deploy AUR package: ${PACKAGE}"
|
||||
|
|
|
@ -12,7 +12,6 @@ do
|
|||
done
|
||||
|
||||
echo "--- :github: Deploy artifacts for release: ${BUILDKITE_TAG}"
|
||||
git fetch
|
||||
hub release create "${BUILDKITE_TAG}" "${artifacts[@]}" -F <(echo -e "${BUILDKITE_TAG}\n\n## Changelog\n$(git log --oneline --pretty='* %h %s' $(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))...$(git describe --abbrev=0 --tags))\n\n## Docker Container\n* \`docker pull authelia/authelia:${BUILDKITE_TAG//v}\`"); EXIT=$?
|
||||
|
||||
if [[ $EXIT -eq 0 ]];
|
||||
|
|
Loading…
Reference in New Issue
Block a user