Skip to content

Releases: mcmah309/containeryard

v0.3.0

14 Dec 05:00
Compare
Choose a tag to compare
  • Support single file modules
  • Header generation on combining modules

Migrate Script

Script to migrate modules to the new format

#!/usr/bin/env bash

process_directory() {
    local dir="$1"

    if [[ -f "$dir/Containerfile" && -f "$dir/yard-module.yaml" ]]; then
        containerfile_contents=$(cat "$dir/Containerfile")
        yard_module_contents=$(cat "$dir/yard-module.yaml")

        directory_name=$(basename "$dir")
        output_file="$(dirname "$dir")/${directory_name}.md"

        cat <<EOF > "$output_file"
\`\`\`yaml
$yard_module_contents
\`\`\`
\`\`\`Dockerfile
$containerfile_contents
\`\`\`
EOF

        echo "Generated $output_file"
    fi

    for subdir in "$dir"/*/; do
        if [[ -d "$subdir" ]]; then
            process_directory "$subdir"
        fi
    done
}

process_directory "$(pwd)"

Full Changelog: v0.2.7...v0.3.0

v0.2.7

27 Oct 12:32
Compare
Choose a tag to compare
  • Add dist profile

Full Changelog: v0.2.6...v0.2.7

v0.2.6

26 Oct 22:35
Compare
Choose a tag to compare
  • Add Pre-Build Hook And Post-Build Hook: #13
  • Resolve Files Path Conflicts: #2
  • Support All Git Providers: #5 #6 #15
  • Add a Flag To Handle When Remote Files Are Already On Local: #3
    Full Changelog: v0.2.4...v0.2.6

v0.2.4

29 Jul 22:12
Compare
Choose a tag to compare

v0.2.3

28 Jul 23:13
Compare
Choose a tag to compare
  • Add update command to update all commits in yard.yaml
  • Add support for environment variables as template values
  • Add support for shell commands as template values

Full Changelog: v0.2.2...v0.2.3

v0.2.2

28 Jul 18:27
Compare
Choose a tag to compare
  • Add Debian archive

v0.2.0

24 Jul 18:55
Compare
Choose a tag to compare