Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3f901068
Unverified
Commit
3f901068
authored
Jun 14, 2022
by
Derek Nola
Committed by
GitHub
Jun 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add alternate scripts location (#5692)
Signed-off-by:
Derek Nola
<
derek.nola@suse.com
>
parent
e6009b1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vagrantdefaults.rb
tests/e2e/vagrantdefaults.rb
+3
-1
No files found.
tests/e2e/vagrantdefaults.rb
View file @
3f901068
...
...
@@ -19,9 +19,10 @@ def getInstallType(vm, release_version, branch)
elsif
!
release_version
.
empty?
return
"INSTALL_K3S_VERSION=
#{
release_version
}
"
else
scripts_location
=
Dir
.
exists?
(
"./scripts"
)
?
"./scripts"
:
"../scripts"
# Grabs the last 5 commit SHA's from the given branch, then purges any commits that do not have a passing CI build
# MicroOS requires it not be in a /tmp/ or other root system folder
vm
.
provision
"Get latest commit"
,
type:
"shell"
,
path:
"../scripts
/latest_commit.sh"
,
args:
[
branch
,
"/tmp/k3s_commits"
]
vm
.
provision
"Get latest commit"
,
type:
"shell"
,
path:
scripts_location
+
"
/latest_commit.sh"
,
args:
[
branch
,
"/tmp/k3s_commits"
]
return
"INSTALL_K3S_COMMIT=$(head
\
-n
\
1
\
/tmp/k3s_commits)"
end
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment