diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..0861f1b --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,21 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build-gnu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: Build the GNU Docker image + run: docker build . --file docker/Dockerfile-gcc --tag cmake-cpp-modules-template-gcc:$(date +%s) + build-clang: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: Build the Clang Docker image + run: docker build . --file docker/Dockerfile-clang --tag cmake-cpp-modules-template-clang:$(date +%s)