Skip to content

🧱 QD-13129 Add proper permissions to the home folder after ins… #27

🧱 QD-13129 Add proper permissions to the home folder after ins…

🧱 QD-13129 Add proper permissions to the home folder after ins… #27

Workflow file for this run

name: '🐳 Lint'
on:
pull_request:
paths:
- 'dockerfiles/**/*.Dockerfile'
- 'dockerfiles/**/*.j2'
- 'scripts/dockerfiles.py'
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
- name: Check if Dockerfiles exist
id: check
run: |
if find dockerfiles -name "Dockerfile" -type f | grep -q .; then
echo "has_dockerfiles=true" >> $GITHUB_OUTPUT
else
echo "has_dockerfiles=false" >> $GITHUB_OUTPUT
echo "No Dockerfiles found in dockerfiles/ directory, skipping generation"
fi
- uses: dorny/paths-filter@v3
if: steps.check.outputs.has_dockerfiles == 'true'
id: changes
with:
filters: |
dockerfiles:
- 'dockerfiles/**'
- name: Install dependencies
if: steps.check.outputs.has_dockerfiles == 'true' && steps.changes.outputs.dockerfiles == 'true'
run: pip install jinja2
- name: Generate Dockerfiles
if: steps.check.outputs.has_dockerfiles == 'true' && steps.changes.outputs.dockerfiles == 'true'
run: ./scripts/dockerfiles.py dockerfiles
- name: Compare the expected and actual directories
if: steps.check.outputs.has_dockerfiles == 'true' && steps.changes.outputs.dockerfiles == 'true'
run: |
git status
if [ "$(git status --porcelain dockerfiles | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol HEAD -- dockerfiles
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "QD-8148 Update Dockerfiles"
git push
fi