Sha256: 8f21be2c0c1b0c9e885d0a811f1a13f015dd679dd58d147987db4dde7ec06ab5
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
#!/usr/bin/env bash set -x set -e project=$(basename `pwd`) artifacts="${1:-tasks/package/artifacts}" dockerfile="${2:-tasks/package/Dockerfile}" task_name="${3:-$project-package-$(date +%s)}" cleanup() { docker stop "$task_name" docker rm "$task_name" } trap cleanup EXIT rm -rf "$artifacts" docker pull sczizzo/trusty-tool:latest docker build -t "$task_name" -f "$dockerfile" . docker run --name "$task_name" -dt "$task_name" docker cp "$task_name":/artifacts "$artifacts"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
robit-1.0.5 | tasks/package/run.sh |