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
34 changes: 34 additions & 0 deletions .github/workflows/lint-dockerfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint Dockerfile
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
validate-dockerfile:
name: Validate Dockerfile
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v6
- name: Install docker buildx
uses: docker/setup-buildx-action@v3
- name: Check Dockerfile for errors
uses: docker/build-push-action@v6
with:
file: .devcontainer/Dockerfile
call: check
lint-dockerfile:
name: Lint Dockerfile
runs-on: ubuntu-latest
needs: validate-dockerfile
steps:
- name: Checkout repository code
uses: actions/checkout@v6
- name: Check Dockerfile for errors
uses: hadolint/hadolint-action@master
with:
dockerfile: .devcontainer/Dockerfile
config: .hadolint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
- name: Install docker buildx
uses: docker/setup-buildx-action@v3
- name: Extract repository name
run: echo "REPO_NAME=$(basename ${{ github.repository }})" >> ${GITHUB_ENV}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .devcontainer
push: true
tags: dhglennvl/cpp-devcontainer:latest
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:latest
5 changes: 5 additions & 0 deletions .github/workflows/sanity-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@ jobs:
cacheFrom: ${{ env.GHCR_URL }}
push: never
runCmd: |
ccache --version
clang --version
clang-format --version
clang-tidy --version
clangd --version
cmake --version
cppcheck --version
lldb --version
vcpkg --version
build-test-project:
name: Build test project
Expand Down
2 changes: 2 additions & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignored:
- DL3008