Skip to content

build-test

build-test #24

Workflow file for this run

name: build-test
on:
schedule:
- cron: '0 1 * * *'
push:
branches:
- 'main'
paths:
- 'build/**'
pull_request:
branches:
- 'main'
paths:
- 'build/**'
workflow_dispatch:
jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
# if: github.event_name == 'push' || github.event_name == 'pull_request'
test:
uses: ./.github/workflows/test.yml
with:
docker_files_name: Dockerfile.v2
secrets: inherit
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
# TAG_SUFFIX="nightly-$(date +'%Y%m%d')"
push:
uses: ./.github/workflows/publish.yml
needs: test
with:
docker_files_name: Dockerfile.v2
version_substr: v2.
secrets: inherit