-
-
Notifications
You must be signed in to change notification settings - Fork 843
40 lines (36 loc) · 1006 Bytes
/
push_to_docker_hub.yml
File metadata and controls
40 lines (36 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build Docker images and push to DockerHub
on:
pull_request:
paths:
- '.github/workflows/push_to_docker_hub.yml'
- 'docker/Dockerfile'
workflow_dispatch:
# Allow to run manually
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