summaryrefslogtreecommitdiffstats
path: root/pkg/model/testdata/container-volumes/push.yml
blob: 1ed27f22336e58361117f63a9d8c3eeb85df23f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: Job Container
on: push

jobs:
  with-volumes:
    runs-on: ubuntu-latest
    container:
      image: node:16-buster-slim
      volumes:
        - my_docker_volume:/path/to/volume
        - /path/to/nonexist/directory
        - /proc/sys/kernel/random/boot_id:/current/boot_id
    steps:
      - run: |
          set -e
          test -d /path/to/volume
          test "$(cat /proc/sys/kernel/random/boot_id)" = "$(cat /current/boot_id)"
          test -d /path/to/nonexist/directory