2020-07-17 16:24:33 +02:00
|
|
|
name: build
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 12 * * *"
|
|
|
|
push:
|
2020-07-17 18:21:44 +02:00
|
|
|
paths-ignore:
|
|
|
|
- "*.md"
|
|
|
|
- "*.txt"
|
|
|
|
- "*.png"
|
2020-07-17 16:24:33 +02:00
|
|
|
pull_request:
|
2024-07-13 21:49:39 +02:00
|
|
|
workflow_dispatch:
|
2020-07-17 16:24:33 +02:00
|
|
|
|
|
|
|
jobs:
|
2024-07-13 21:49:39 +02:00
|
|
|
verify:
|
2020-07-17 16:24:33 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-13 21:49:39 +02:00
|
|
|
- uses: actions/checkout@v4
|
2020-07-17 16:24:33 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # for proper signature verification
|
|
|
|
|
|
|
|
- name: Verify signature
|
2024-07-13 21:49:39 +02:00
|
|
|
if: github.repository == 'atmoz/sftp'
|
2020-07-18 15:44:46 +02:00
|
|
|
uses: atmoz/git-verify-ref@master
|
|
|
|
with:
|
2020-07-19 22:11:43 +02:00
|
|
|
import-github-users: atmoz
|
2020-07-17 16:24:33 +02:00
|
|
|
|
2024-07-13 21:49:39 +02:00
|
|
|
- name: Run ShellCheck
|
|
|
|
uses: ludeeus/action-shellcheck@master
|
|
|
|
with:
|
|
|
|
ignore_paths: tests/shunit2
|
2020-07-17 16:24:33 +02:00
|
|
|
|
2024-07-13 21:49:39 +02:00
|
|
|
alpine:
|
|
|
|
needs: verify
|
|
|
|
uses: ./.github/workflows/build-image.yml
|
|
|
|
with:
|
|
|
|
containerfile: Dockerfile-alpine
|
|
|
|
image: "$GITHUB_REPOSITORY"
|
|
|
|
tag: alpine
|
2024-09-14 16:30:39 +02:00
|
|
|
update-check: "apk update >/dev/null && apk list --upgradable"
|
2024-07-13 21:49:39 +02:00
|
|
|
secrets: inherit
|
|
|
|
|
|
|
|
debian:
|
|
|
|
needs: verify
|
|
|
|
uses: ./.github/workflows/build-image.yml
|
|
|
|
with:
|
|
|
|
containerfile: Dockerfile
|
|
|
|
image: "$GITHUB_REPOSITORY"
|
|
|
|
tag: debian
|
2024-09-14 16:30:39 +02:00
|
|
|
update-check: "apt-get update >/dev/null && apt-get upgrade -s | grep '^Inst' || true"
|
2024-07-13 21:49:39 +02:00
|
|
|
secrets: inherit
|