diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..e28e9f4 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,43 @@ +name: Build + +on: + push: + branches: + - main + - master + paths-ignore: + - 'docs/**' + - '*.md' + pull_request: + types: [opened, synchronize] + branches: + - main + - master + paths-ignore: + - 'docs/**' + - '*.md' + workflow_dispatch: + +jobs: + build: + name: Build Docker image + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build + uses: docker/build-push-action@v6 + with: + context: . + file: build/Dockerfile + push: false + cache-from: type=gha + cache-to: type=gha,mode=max