mirror of
https://github.com/maxkratz/docker-maven.git
synced 2024-09-16 18:58:51 +00:00
16 lines
503 B
Bash
Executable file
16 lines
503 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
# Generate one github action for each docker image
|
|
|
|
. common.sh
|
|
|
|
for version in "${all_dirs[@]}"; do
|
|
echo "Generating action for $version"
|
|
if [[ "$version" == *"windows"* ]] || [[ "$version" == *"nanoserver"* ]]; then
|
|
sed -e "s/DIRECTORY/$version/" .github/github-action-windows-template.yaml >".github/workflows/$version.yml"
|
|
else
|
|
sed -e "s/DIRECTORY/$version/" .github/github-action-template.yaml >".github/workflows/$version.yml"
|
|
fi
|
|
done
|