Build Docker images and push to DockerHub #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 Docker images and push to DockerHub | |
on: | |
workflow_dispatch: | |
# Allow to run manually | |
branches: | |
- 'develop' | |
push: | |
tags: | |
# Match all release tags including beta, rc | |
- '[0-9]+.[0-9]+' | |
- '[0-9]+.[0-9]+.[0-9]+' | |
- '[0-9]+.[0-9]+.beta[0-9]+' | |
- '[0-9]+.[0-9]+.[0-9]+.beta[0-9]+' | |
- '[0-9]+.[0-9]+.rc[0-9]+' | |
- '[0-9]+.[0-9]+.[0-9]+.rc[0-9]+' | |
schedule: | |
# Recover failed runs each Tuesday and Thursday at one o'clock | |
- cron: '0 1 * * 2,4' | |
jobs: | |
sagemath-dev: | |
uses: ./.github/workflows/docker_hub.yml | |
with: | |
# Build from scratch | |
dockerhub_repository: sagemath-dev | |
dockerfile_target: make-build | |
secrets: inherit | |
sagemath: | |
needs: sagemath-dev | |
uses: ./.github/workflows/docker_hub.yml | |
with: | |
# Build from sagemath-dev | |
dockerhub_repository: sagemath | |
dockerfile_target: sagemath | |
secrets: inherit |