Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/workflows/build-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,28 @@ jobs:
unset $IFS
echo "${sorted[@]}"
echo edited_files=${sorted[@]} >> $GITHUB_OUTPUT


- name: Build plugins with top-level Dockerfiles
id: build-top-level
run: |
pushd plugins
TO_BUILD_PLUGINS=$(find . -maxdepth 2 -name "Dockerfile" -exec dirname {} \;)
for plugin in $TO_BUILD_PLUGINS; do
echo $plugin

# Pretend to sanitize the directory name. Should improve this later
sane_plugin_name=$(basename $plugin)
output=/tmp/output-top-level/$sane_plugin_name

# Build plugin's top-level Dockerfile
docker build -f $plugin/Dockerfile -t $sane_plugin_name $plugin
docker run --rm -v $output:/output $sane_plugin_name

# Replace current plugin directory with built one from Docker
rm -r $plugin
cp -r $output .
done

- name: Build plugin backends
run: |
IFS=' ' read -ra files <<< "${{ steps.list-files.outputs.edited_files }}"
Expand Down