Skip to content
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
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint Dockerfile

on:
push:
paths:
- Dockerfile
- .github/workflows/lint.yml
pull_request:
paths:
- Dockerfile
- .github/workflows/lint.yml
workflow_dispatch:

jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7.0.1

- name: Run hadolint
run: |
docker run --rm -v "$PWD":/work -w /work hadolint/hadolint:latest-alpine \
sh -c "hadolint --version && hadolint Dockerfile"
7 changes: 0 additions & 7 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,9 @@ when:
- .woodpecker.yml

steps:
- name: lint-dockerfile
image: hadolint/hadolint:latest-alpine
commands:
- hadolint --version
- hadolint Dockerfile

- name: build-and-push
image: woodpeckerci/plugin-docker-buildx
privileged: true
depends_on: [lint-dockerfile]
settings:
repo: ${CI_REPO}
dockerfile: Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY --chown=$UID:0 --chmod=644 conf/nginx-site.conf /etc/nginx/conf.d/default.c
EXPOSE 8080

HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=10s \
CMD curl -fSs 127.0.0.1:8080/healthz || exit 1
CMD ["curl", "-fSs", "127.0.0.1:8080/healthz"]

STOPSIGNAL SIGQUIT

Expand Down