Sha256: 412083f9634ba34329ff15195153e088a364c5789680d793cc0fd52fe20be38b
Contents?: true
Size: 1.49 KB
Versions: 1
Compression:
Stored size: 1.49 KB
Contents
#!/usr/bin/env bash set -eux PATH=$PATH:/usr/local/bin BUNDLER_PATH=.bundle/gems function build_and_test_image() { container_name="$1" : === : === run linter on the docker files : === bundle exec puppet-docker local-lint "$container_name" : === : === build and test $container_name : === bundle exec puppet-docker build "$container_name" --no-cache --repository puppet --version "$version" bundle exec puppet-docker spec "$container_name" --image "puppet/$container_name:$version" } function push_image() { container_name="$1" container_version="$2" : === : === push $container_name : === bundle exec puppet-docker push "$container_name" --repository puppet --version "$container_version" } : === : === bundle install to get ready : === bundle install --path "$BUNDLER_PATH" : === : === If we do not git pull --unshallow we get really weird results with git describe : === git pull --unshallow : === : === make sure we fetch tags for versioning : === git fetch origin 'refs/tags/*:refs/tags/*' git_describe=`git describe` version="${git_describe%%-*}" : === : === pull updated base images : === bundle exec puppet-docker update-base-images ubuntu:16.04 container_list=(r10k) : === : === build and test all the images before we push anything : === for container in "${container_list[@]}"; do build_and_test_image "$container" done : === : === push all the images : === for container in "${container_list[@]}"; do push_image "$container" "$version" done : === : === SUCCESS : ===
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
r10k-3.0.3 | docker/ci/build |