-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
254aaf5
commit 3cdd93f
Showing
3 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: '3' | ||
|
||
vars: | ||
VER: | ||
sh: git describe --tags --abbrev=0 2>/dev/null || git rev-parse --short HEAD | ||
|
||
tasks: | ||
|
||
pre: | ||
- docker login | ||
|
||
validate: | ||
silent: false | ||
cmds: | ||
- echo === "{{.IMG}}" | ||
- > | ||
cat validate.sh | ||
| docker run -i "{{.IMG}}" | ||
env VER="{{.VER}}" EXT="{{.EXT}}" ARCH={{ARCH}} bash - | ||
| grep "$VER" | ||
rh9: | ||
- task: validate | ||
vars: | ||
EXT: ".rpm" | ||
IMG: "rockylinux:9" | ||
|
||
ub22: | ||
- task: validate | ||
vars: | ||
EXT: ".deb" | ||
IMG: "ubuntu:22.04" | ||
|
||
rh8: | ||
- task: validate | ||
vars: | ||
EXT: "_redhat8.rpm" | ||
IMG: "rockylinux:8" | ||
|
||
ub20: | ||
- task: validate | ||
vars: | ||
EXT: "_ubuntu20.deb" | ||
IMG: "ubuntu:20.04" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#VER=3.0.1-beta.2310151130 | ||
#EXT=.rpm | ||
|
||
URL=https://github.com/nuvolaris/nuv/releases/download/$VER/nuv_${VER}_${ARCH}${EXT} >nuv${EXT} | ||
echo $URL | ||
case "$EXT" in | ||
*.deb) | ||
apt-get update && apt-get install -y curl | ||
export INST="dpkg -i" | ||
;; | ||
*.rpm) | ||
export INST="rpm -i" | ||
;; | ||
esac | ||
|
||
curl -sL "$URL" >nuv${EXT} | ||
$INST "nuv${EXT}" | ||
|
||
nuv -v | ||
|