Skip to content

Refactor build workflow and add check for update #1546

Refactor build workflow and add check for update

Refactor build workflow and add check for update #1546

Workflow file for this run

name: build
on:
schedule:
- cron: "0 12 * * *"
push:
paths-ignore:
- "*.md"
- "*.txt"
- "*.png"
pull_request:
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
ignore_paths: tests/shunit2
verify-signature:
runs-on: ubuntu-latest
if: github.repository == 'atmoz/sftp'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # for proper signature verification
- name: Verify signature
uses: atmoz/git-verify-ref@master
with:
import-github-users: atmoz
build-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true # for shunit2
- name: alpine
uses: ./.github/actions/build-image
with:
image: $GITHUB_REPOSITORY
tag: alpine
update-check: apk update &>/dev/null && apk version -q -l '>'
- name: debian
uses: ./.github/actions/build-image
with:
image: $GITHUB_REPOSITORY
tag: debian
update-check: apt-get update &>/dev/null && apt-get upgrade -s | grep ^Inst