now the build works?????????
All checks were successful
Build and Push to Forgejo Registry / checkout (push) Successful in 18s
All checks were successful
Build and Push to Forgejo Registry / checkout (push) Successful in 18s
This commit is contained in:
parent
b907e739dd
commit
913e5ab6c4
1 changed files with 28 additions and 28 deletions
56
build.sh
56
build.sh
|
@ -35,33 +35,33 @@ tag=latest
|
||||||
|
|
||||||
container="${domain}/${image}:${tag}"
|
container="${domain}/${image}:${tag}"
|
||||||
|
|
||||||
# if ! command_exists docker; then
|
if ! command_exists docker; then
|
||||||
# echo_error "Docker does not exist!"
|
echo_error "Docker does not exist!"
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
|
||||||
#
|
|
||||||
# [[ ! -e ./Dockerfile ]] &&
|
|
||||||
# echo_error "Dockerfile does not exist" &&
|
|
||||||
# exit 1
|
|
||||||
#
|
|
||||||
# docker build -t "$container" .
|
|
||||||
#
|
|
||||||
# docker push "$container"
|
|
||||||
|
|
||||||
release="$(cat /etc/os-release)"
|
|
||||||
|
|
||||||
echo "Would push $container"
|
|
||||||
|
|
||||||
echo "is docker installed?"
|
|
||||||
if command_exists docker; then
|
|
||||||
echo "Yes!"
|
|
||||||
else
|
|
||||||
echo "No!"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "What is the hostname? What is path?"
|
[[ ! -e ./Dockerfile ]] &&
|
||||||
echo "HOSTNAME: $(hostname)"
|
echo_error "Dockerfile does not exist" &&
|
||||||
echo "USER: $(whoami)"
|
exit 1
|
||||||
echo "PATH: ${PATH}"
|
|
||||||
echo "IDS: $(id)"
|
docker build -t "$container" .
|
||||||
echo "${release}"
|
|
||||||
|
docker push "$container"
|
||||||
|
|
||||||
|
# release="$(cat /etc/os-release)"
|
||||||
|
#
|
||||||
|
# echo "Would push $container"
|
||||||
|
#
|
||||||
|
# echo "is docker installed?"
|
||||||
|
# if command_exists docker; then
|
||||||
|
# echo "Yes!"
|
||||||
|
# else
|
||||||
|
# echo "No!"
|
||||||
|
# fi
|
||||||
|
#
|
||||||
|
# echo "What is the hostname? What is path?"
|
||||||
|
# echo "HOSTNAME: $(hostname)"
|
||||||
|
# echo "USER: $(whoami)"
|
||||||
|
# echo "PATH: ${PATH}"
|
||||||
|
# echo "IDS: $(id)"
|
||||||
|
# echo "${release}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue