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

add test docker image to ghcr for dynamic VM testing #3775

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add changed_file check
  • Loading branch information
gdams committed Oct 10, 2024
commit b4f047c1c36e80a887b81303076634581ac03759
5 changes: 3 additions & 2 deletions .github/workflows/build_test_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ jobs:
id: get_changed_files
run: |
if [ ${{ github.event_name }} == "push" ]; then
changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep ansible/docker/test/Dockerfile)
changed_files=$(git diff --name-only HEAD~1 | grep ansible/docker/test/Dockerfile || true)
else
changed_files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep ansible/docker/test/Dockerfile)
changed_files=$(git diff --name-only origin/master | grep ansible/docker/test/Dockerfile || true)
fi
echo "changed_files=$changed_files" >> "$GITHUB_ENV"

# Generate matrix
- name: Generate matrix
if: steps.get_changed_files.outputs.changed_files
id: generate_matrix
run: |
matrix=$(jq -n --arg files "${changed_files}" '{
Expand Down