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

FIX [CI / Docker] Follow up from #1481 #1487

Merged
merged 36 commits into from
Mar 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5f0602c
Update test-docker-build.yml
younesbelkada Feb 20, 2024
490113e
Update test-docker-build.yml
younesbelkada Feb 20, 2024
ea282d3
Update Dockerfile
younesbelkada Feb 20, 2024
6cfa521
Update test-docker-build.yml
younesbelkada Feb 20, 2024
1925cc5
Update test-docker-build.yml
younesbelkada Feb 20, 2024
e021a25
Update Dockerfile
younesbelkada Feb 20, 2024
ef6cd9c
Update .github/workflows/test-docker-build.yml
younesbelkada Feb 20, 2024
3ec603b
Update .github/workflows/test-docker-build.yml
younesbelkada Feb 20, 2024
42d6285
Update test-docker-build.yml
younesbelkada Feb 20, 2024
c2059b0
Update test-docker-build.yml
younesbelkada Feb 20, 2024
127353a
Update test-docker-build.yml
younesbelkada Feb 20, 2024
aec2045
Update test-docker-build.yml
younesbelkada Feb 20, 2024
e834b4b
Update test-docker-build.yml
younesbelkada Feb 20, 2024
7adf0f5
Update test-docker-build.yml
younesbelkada Feb 20, 2024
e7245ed
Update test-docker-build.yml
younesbelkada Feb 20, 2024
444ebd0
Update test-docker-build.yml
younesbelkada Feb 20, 2024
03e10f8
Update test-docker-build.yml
younesbelkada Feb 20, 2024
f4bac2e
Update test-docker-build.yml
younesbelkada Feb 20, 2024
68ae675
Update .github/workflows/test-docker-build.yml
younesbelkada Feb 20, 2024
9552ed9
Update Dockerfile
younesbelkada Feb 20, 2024
28610c0
Update test-docker-build.yml
younesbelkada Feb 20, 2024
f5c35d3
Update test-docker-build.yml
younesbelkada Feb 20, 2024
cbbab27
Update test-docker-build.yml
younesbelkada Feb 20, 2024
b3fbe06
Update test-docker-build.yml
younesbelkada Feb 20, 2024
ece7d2f
Update test-docker-build.yml
younesbelkada Feb 20, 2024
65ed5c1
Update test-docker-build.yml
younesbelkada Feb 20, 2024
66c329d
Update test-docker-build.yml
younesbelkada Feb 20, 2024
17efab4
Update test-docker-build.yml
younesbelkada Feb 20, 2024
8546048
Update test-docker-build.yml
younesbelkada Feb 20, 2024
5d6d86c
Update test-docker-build.yml
younesbelkada Feb 20, 2024
7c21f16
Update test-docker-build.yml
younesbelkada Feb 20, 2024
6fc6cdb
Update test-docker-build.yml
younesbelkada Feb 20, 2024
1cf4b19
Update test-docker-build.yml
younesbelkada Feb 20, 2024
7ec91b3
Update test-docker-build.yml
younesbelkada Feb 20, 2024
1672a34
revert
younesbelkada Feb 20, 2024
d633baf
Update .github/workflows/test-docker-build.yml
younesbelkada Feb 23, 2024
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
Update test-docker-build.yml
  • Loading branch information
younesbelkada authored Feb 20, 2024
commit b3fbe063621468e4efc595726fac75b4660671fa
18 changes: 10 additions & 8 deletions .github/workflows/test-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,22 @@ jobs:
- name: Run step if only the files listed above change
if: steps.changed-files.outputs.any_changed == 'true'
id: set-matrix
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files}}
run: |
for file in ${CHANGED_FILES}; do
for file in ${{ steps.changed-files.outputs.all_changed_files}}; do
echo "$file was changed"
done
echo ${CHANGED_FILES}
echo ${{ steps.changed-files.outputs.all_changed_files}}
echo "matrix=[\"${{ steps.changed-files.outputs.all_changed_files}}\"] |sed 's/ /\", \"/g'" >> $GITHUB_OUTPUT
build_modified_files:
runs-on: ubuntu-latest
needs: get_changed_files
name: Build Docker images on modified files
runs-on: ubuntu-latest
strategy:
matrix:
docker-file: ${{ fromJSON(needs.get_changed_files.outputs.matrix) }} # https://docs.github.com/en/actions/learn-github-actions/expressions#example-returning-a-json-object
younesbelkada marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Print env variables
run: |
echo ${{ needs.get_changed_files.outputs.matrix }}
- name: Build Docker image
uses: docker/build-push-action@v4
with:
context: ${{ matrix.docker-file }}
push: False
Loading