Skip to content

Refactor build workflow and add check for update #1554

Refactor build workflow and add check for update

Refactor build workflow and add check for update #1554

Workflow file for this run

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@v2
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:
runs-on: ubuntu-latest
needs: verify
uses: ./.github/workflows/build-image.yml

Check failure on line 36 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 36, Col: 5): Unexpected value 'uses' .github/workflows/build.yml (Line: 37, Col: 5): Unexpected value 'with'

Check failure on line 36 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 36, Col: 5): Unexpected value 'uses' .github/workflows/build.yml (Line: 37, Col: 5): Unexpected value 'with'
with:
containerfile: Dockerfile-alpine
image: $GITHUB_REPOSITORY
tag: alpine
update-check: "apk update &>/dev/null && apk version -q -l '>'"
secrets: inherit
debian:
runs-on: ubuntu-latest
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"
secrets: inherit