diff --git a/.github/workflows/bin.yml b/.github.old/workflows/bin.yml similarity index 100% rename from .github/workflows/bin.yml rename to .github.old/workflows/bin.yml diff --git a/.github/workflows/ci.yml b/.github.old/workflows/ci.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github.old/workflows/ci.yml diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml new file mode 100644 index 0000000..aa7e593 --- /dev/null +++ b/.github/workflows/bootstrap.yml @@ -0,0 +1,37 @@ +name: bootstrap + +on: + push: + branches: [ main ] + paths: + - 'hadolint/**' + pull_request: + branches: [ main ] + paths: + - 'hadolint/**' + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: hadolint + steps: + - uses: actions/checkout@v4 + + - name: Install QEMU static binaries + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} + password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} + + - name: Build and push + uses: docker/bake-action@v4 + with: + push: true diff --git a/hadolint/Containerfile b/hadolint/Containerfile new file mode 100644 index 0000000..72a8778 --- /dev/null +++ b/hadolint/Containerfile @@ -0,0 +1,38 @@ +# syntax=docker/dockerfile:1 +ARG CONTAINER_REGISTRY=docker.io +FROM $CONTAINER_REGISTRY/ubuntu:jammy-20231004 as base + +SHELL ["/bin/bash", "-o", "pipefail", "-c"] +RUN <