Skip to content

Commit

Permalink
Improve ci script (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
okigan authored Jul 10, 2023
1 parent 8491521 commit e47119b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
venv/
6 changes: 3 additions & 3 deletions scripts/ci-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ set -o xtrace
docker_run() {
local image_type=$1
local script_file=$2
echo building "${image_type}" image -- first time it could take a few minutes
docker build -t awscurl-ci-"$image_type" -f ./ci/ci-"$image_type"/Dockerfile . && \
docker run -t awscurl-ci-"$image_type" bash -c "$script_file"
echo "building ${image_type} image -- first time it could take a few minutes"
docker build -t "awscurl-ci-${image_type}" -f "./ci/ci-${image_type}/Dockerfile" . &&
docker run --rm -t "awscurl-ci-${image_type}" bash -c "${script_file}"
}

docker_run "ubuntu" "./scripts/ci.sh"
Expand Down

0 comments on commit e47119b

Please sign in to comment.