Skip to content

Commit

Permalink
tag Docker images with the corresponding version number
Browse files Browse the repository at this point in the history
  • Loading branch information
aspiers committed Nov 20, 2016
1 parent 98a8f7e commit 0348062
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -eu

version=$( git describe --match v* --abbrev=0 )
imagename=stowtest
image=$imagename:$version

pushd docker
docker build -t stowtest .
echo "Building Docker image $image ..."
docker build -t $image .
popd
8 changes: 6 additions & 2 deletions test-docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

# Run the docker image that test.
docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) stowtest
# Test Stow across multiple Perl versions, by executing the
# Docker image built via build-docker.sh.

version=$( git describe --match v* --abbrev=0 )

docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) stowtest:$version

0 comments on commit 0348062

Please sign in to comment.