From dfc698ac6b31be19185124dd39fd91a49549cb99 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Fri, 15 Aug 2025 23:25:38 +0200 Subject: ci: dockerfile as check --- .github/workflows/check.yaml | 27 +++++++++++++++++++++++++++ .github/workflows/dockerfile.yaml | 39 --------------------------------------- 2 files changed, 27 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/dockerfile.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 4536a78..bfc782b 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -10,6 +10,33 @@ concurrency: cancel-in-progress: true name: check jobs: + dockerfile: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + crate: + - pseudonyms + - warden + - configuration + - router + - rule-executor + name: dockerfile / ${{ matrix.crate }} + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - name: set up docker buildx + uses: docker/setup-buildx-action@v3 + - name: build # and push + uses: docker/build-push-action@v6 + with: + push: false + context: . + file: crates/${{ matrix.crate }}/Dockerfile + tags: warden/${{ matrix.crate }}:latest + cache-from: type=gha + cache-to: type=gha,mode=max msrv: runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/dockerfile.yaml b/.github/workflows/dockerfile.yaml deleted file mode 100644 index 3d2435d..0000000 --- a/.github/workflows/dockerfile.yaml +++ /dev/null @@ -1,39 +0,0 @@ -permissions: - contents: read -on: - push: - branches: [master] - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true -name: dockerfile -jobs: - pseudonyms: - runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - crate: - - pseudonyms - - warden - - configuration - - router - - rule-executor - name: build / ${{ matrix.crate }} - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - name: set up docker buildx - uses: docker/setup-buildx-action@v3 - - name: build # and push - uses: docker/build-push-action@v6 - with: - push: false - context: . - file: crates/${{ matrix.crate }}/Dockerfile - tags: warden/${{ matrix.crate }}:latest - cache-from: type=gha - cache-to: type=gha,mode=max -- cgit v1.2.3