aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/dockerfile.yaml
blob: c2823eaa0561ad48297159b9911d3a9ddecb7a2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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"]
    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