aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-08-15 23:25:38 +0200
committerrtkay123 <dev@kanjala.com>2025-08-15 23:25:38 +0200
commitdfc698ac6b31be19185124dd39fd91a49549cb99 (patch)
treeacb3853b0d46199010810eaae9c606c1b88543f6
parent97ceeb70dafe6b629e31d9d0d46bc8fe9b9a35ee (diff)
downloadwarden-dfc698ac6b31be19185124dd39fd91a49549cb99.tar.bz2
warden-dfc698ac6b31be19185124dd39fd91a49549cb99.zip
ci: dockerfile as check
-rw-r--r--.github/workflows/check.yaml27
-rw-r--r--.github/workflows/dockerfile.yaml39
2 files changed, 27 insertions, 39 deletions
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