ci(buildkit): remove early-return from buildkit-ref
This doesn't really make sense now that this script returns a $GITHUB_ENV snippet. Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
This commit is contained in:
parent
4ecc01f3ad
commit
7310a7cd0c
1 changed files with 0 additions and 6 deletions
|
@ -1,18 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
# This script returns the current BuildKit ref and source repository being used.
|
||||
# This script will only work with a BuildKit repository hosted on GitHub.
|
||||
# If BUILDKIT_REF is already set in the environment, it will be returned as-is.
|
||||
#
|
||||
# The output of this script may be valid shell script, but is intended for use with
|
||||
# GitHub Actions' $GITHUB_ENV.
|
||||
|
||||
buildkit_pkg=github.com/moby/buildkit
|
||||
|
||||
if [ -n "$BUILDKIT_REF" ]; then
|
||||
echo "$BUILDKIT_REF"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# get buildkit version from vendor.mod
|
||||
buildkit_ref=$(./hack/with-go-mod.sh go list -mod=mod -modfile=vendor.mod -u -m -f '{{if .Replace}}{{.Replace.Version}}{{else}}{{.Version}}{{end}}' "$buildkit_pkg")
|
||||
buildkit_repo=$(./hack/with-go-mod.sh go list -mod=mod -modfile=vendor.mod -u -m -f '{{if .Replace}}{{.Replace.Path}}{{else}}{{.Path}}{{end}}' "$buildkit_pkg")
|
||||
|
|
Loading…
Reference in a new issue