-
Notifications
You must be signed in to change notification settings - Fork 834
51 lines (45 loc) · 1.15 KB
/
build.yml
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
46
47
48
49
50
51
name: build
on:
schedule:
- cron: "0 12 * * *"
push:
paths-ignore:
- "*.md"
- "*.txt"
- "*.png"
pull_request:
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # for proper signature verification
- name: Verify signature
if: github.repository == 'atmoz/sftp'
uses: atmoz/git-verify-ref@master
with:
import-github-users: atmoz
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
ignore_paths: tests/shunit2
alpine:
needs: verify
uses: ./.github/workflows/build-image.yml
with:
containerfile: Dockerfile-alpine
image: "$GITHUB_REPOSITORY"
tag: alpine
update-check: "apk update >/dev/null && apk list --upgradable"
secrets: inherit
debian:
needs: verify
uses: ./.github/workflows/build-image.yml
with:
containerfile: Dockerfile
image: "$GITHUB_REPOSITORY"
tag: debian
update-check: "apt-get update >/dev/null && apt-get upgrade -s | grep '^Inst' || true"
secrets: inherit