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 Hadolint GitHub Actions Workflow #266

Merged
merged 4 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/deploy-build-testing.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: deploy-build-testing
name: Deploy Build Testing
on:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
docker-build:
deploy-build-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/hadolint-testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Hadolint Testing
on:
pull_request:
types: [synchronize, opened, reopened]
jobs:
hadolint-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hadolint/[email protected]
with:
recursive: true
4 changes: 2 additions & 2 deletions .github/workflows/laravel-create-project.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: laravel-create-project
name: Laravel Create Project
on:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
docker-build:
laravel-create-project:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/laravel-git-clone.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: laravel-git-clone
name: Laravel Git Clone
on:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
docker-build:
laravel-git-clone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
28 changes: 9 additions & 19 deletions infra/docker/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ COPY --from=composer:2.7 /usr/bin/composer /usr/bin/composer
RUN <<EOF
apt-get update
apt-get -y install --no-install-recommends \
locales \
git \
unzip \
libzip-dev \
libicu-dev \
libonig-dev \
default-mysql-client
locales=2.31-13+deb11u10 \
git=1:2.30.2-1+deb11u2 \
unzip=6.0-26+deb11u1 \
libzip-dev=1.7.3-1 \
libicu-dev=67.1-7 \
libonig-dev=6.9.6-1.1 \
default-mysql-client=1.0.7
locale-gen en_US.UTF-8
localedef -f UTF-8 -i en_US en_US.UTF-8
docker-php-ext-install \
Expand All @@ -41,15 +41,12 @@ RUN <<EOF
chown phper:phper /composer
chown phper:phper /workspace
chown phper:phper /home/phper/.config/psysh
EOF

FROM base AS development

RUN <<EOF
apt-get clean
rm -rf /var/lib/apt/lists/*
EOF

FROM base AS development

COPY ./infra/docker/php/php.development.ini /usr/local/etc/php/php.ini

USER phper
Expand All @@ -59,8 +56,6 @@ FROM base AS development-xdebug
RUN <<EOF
pecl install xdebug
docker-php-ext-enable xdebug
apt-get clean
rm -rf /var/lib/apt/lists/*
EOF

COPY ./infra/docker/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
Expand All @@ -72,11 +67,6 @@ FROM base AS deploy
COPY ./infra/docker/php/php.deploy.ini /usr/local/etc/php/php.ini
COPY --chown=phper:phper ./src /workspace

RUN <<EOF
apt-get clean
rm -rf /var/lib/apt/lists/*
EOF

USER phper

RUN <<EOF
Expand Down