build-test #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |