mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-10-27 23:26:48 +09:00
Pull request 2722: AGDNS-4274-explicitly-checkout-the-revision-in-ci
Squashed commit of the following: commit c4383a8d156bfa49c229473d42b3a6e3eb6c4e3c Author: Maksim Kazantsev <m.kazantsev@adguard.com> Date: Fri Jul 17 15:45:25 2026 +0300 bamboo-specs: explicitly checkout the revision;
This commit is contained in:
1 parent
ef585d45cd
commit
2961664cbe
2 files changed
+12
No files matched your search
@@ -151,6 +151,12 @@
|
||||
|
||||
set -e -f -u -x
|
||||
|
||||
# The version.sh script queries the current state of the git
|
||||
# repository, so we must explicitly checkout the revision that
|
||||
# triggered the build to prevent race conditions when the master
|
||||
# branch changes while this build is running.
|
||||
git checkout "${bamboo_repository_revision_number}"
|
||||
|
||||
# Install Qemu, create builder.
|
||||
docker version -f '{{ .Server.Experimental }}'
|
||||
docker buildx rm buildx-builder || :
|
||||
|
||||
@@ -171,6 +171,12 @@
|
||||
|
||||
set -e -f -u -x
|
||||
|
||||
# The version.sh script queries the current state of the git
|
||||
# repository, so we must explicitly checkout the revision that
|
||||
# triggered the build to prevent race conditions when the master
|
||||
# branch changes while this build is running.
|
||||
git checkout "${bamboo_repository_revision_number}"
|
||||
|
||||
version="$(env CHANNEL=${bamboo_channel} sh ./scripts/make/version.sh)"
|
||||
readonly version
|
||||
|
||||
|
||||
Reference in new issue
Block a user