-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.09 KB
/
Copy pathci.yml
File metadata and controls
45 lines (37 loc) · 1.09 KB
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
35
36
37
38
39
40
41
42
43
44
45
# SPDX-License-Identifier: MPL-2.0
name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
permissions: read-all
jobs:
lint-shell:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0
with:
scandir: './src/scripts'
container-build:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build container image with nerdctl/podman
run: |
if command -v nerdctl &> /dev/null; then
nerdctl build -t ipv6-only:test -f Containerfile .
elif command -v podman &> /dev/null; then
podman build -t ipv6-only:test -f Containerfile .
else
echo "No supported container runtime found (nerdctl/podman)"
exit 0
fi