Fixes in SH scripts

This commit is contained in:
Suzanne Dupéron 2020-02-10 11:35:05 +01:00
parent 140a0fe0b2
commit 3969df5a5d
4 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
set -e
docker build -t "${LIGO_REGISTRY_IMAGE_BUILD:-ligolang/ligo}:next" -f ./docker/distribution/debian/distribute.Dockerfile .
docker build -t "${LIGO_REGISTRY_IMAGE_BUILD:-ligolang/ligo}:next" -f ./docker/distribution/debian/distribute.Dockerfile .

View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
dockerfile_name="build"
# Generic dockerfile

View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
dockerfile_name="package"
dockerfile=""

View File

@ -1,11 +1,14 @@
#!/bin/sh
set -e
# This script accepts three arguments, os family, os and its version,
# which are subsequently used to fetch the respective docker
# image from the ocaml/infrastructure project.
#
# https://github.com/ocaml/infrastructure/wiki/Containers#selecting-linux-distributions
target_os_family=$1
target_os=$2
target_os_version=$3
target_os_family="$1"
target_os="$2"
target_os_version="$3"
# Variables configured at the CI level
dist="$LIGO_DIST_DIR"
@ -29,4 +32,4 @@ fi
target_os_specific_dockerfile="./docker/distribution/$target_os_family/$target_os/$dockerfile_name.Dockerfile"
if test -f "$target_os_specific_dockerfile"; then
dockerfile="$target_os_specific_dockerfile"
fi
fi