FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ret2shell/release-image.fish at main · ret2shell/ret2shell · GitHub
ret2shell
ret2shell
Repository navigation
Code
Issues
16
(16)
Pull requests
11
(11)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ret2shell
/
release-image.fish
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
35 lines (28 loc) · 1.16 KB
Breadcrumbs
ret2shell
/
release-image.fish
Copy path
File metadata and controls
executable file
·
35 lines (28 loc) · 1.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
!/usr/bin/env fish
function
print_error
echo
-e
"
\033[1;31mError:\033[0m
$argv
"
end
#
print info
set
app_v (
grep
-m
1
-oP
'
^
\
s*version
\
s*=
\
s*"
\
K[^"]+
'
Cargo.toml;
or
echo
"
unknown
"
)
set
git_v (
command
-q
git;
and
git describe
--abbrev
=8
--always
--dirty
=
'
*
'
--match
=
'
'
2>
/dev/null;
or
echo
"
unknown
"
)
echo
'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
'
echo
-e
"
\033[1;34mR\033[0met 2 \033[1;31mS\033[0mhell OCI Distribution Script\n
"
echo
-e
"
Build on version: \033[1;36m
$app_v
-
$git_v
\033[0m
"
#
detect buildkit
if
command
-q
docker
set
buildkit docker
else
if
command
-q
podman
set
buildkit podman
set
build_args
--format
docker
else
if
command
-q
buildah
set
buildkit buildah
set
build_args
--format
docker
else
echo
-e
'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
\
n
'
echo
"
No image buildkit found
"
exit
1
end
echo
-e
"
Building image with \033[1;36m
$buildkit
\033[0m
"
echo
-e
'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
\
n
'
#
build image
$buildkit
build
$build_args
--build-arg
R2S_GIT_VERSION=
$git_v
-t
ret2shell:latest
-f
Containerfile .
Back
|
FazBrowse Home
|
New Git URL