summaryrefslogtreecommitdiffstats
path: root/.woodpecker/ci.yml
blob: 2e849e9577ee28e40b11981a2163652910f810f3 (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
pipeline:
  check-service:
    image: rust:${RUST_VERSION}
    pull: true
    commands:
      - echo "Using rust:${RUST_VERSION} on service-${SERVICE}"
      - cd service-${SERVICE}
      - cargo check
    when:
      event: [ push, pull_request ]

  nix-build:
    image: nixos/nix
    commands:
      - nix-build ./default.nix -A ${SERVICE}Image

  nix-build-config:
    image: nixos/nix
    commands:
      - nix-build ./default.nix -A config


matrix:
  SERVICE:
    - hello
    - world
    - joiner
  RUST_VERSION:
    - latest
    - 1.54.0