-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.25 KB
/
ci.yml
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
41
42
43
44
45
46
name: CI
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
pull_request:
jobs:
get-repo-info:
uses: divkix/reusable-workflows/.github/workflows/get-repo-info.yml@main
build-docker:
needs: get-repo-info
strategy:
fail-fast: false
matrix:
include:
- base-image: python:3.11-slim
tag: py311
latest_image: true
- base-image: python:3.10-slim
tag: py310
latest_image: false
- base-image: python:3.9-slim
tag: py39
latest_image: false
uses: divkix/reusable-workflows/.github/workflows/docker-build-publish.yml@main
with:
repo_name: ${{ needs.get-repo-info.outputs.repo_name }}
dockerfile: ./tools/docker/Dockerfile
build_args: BASE_IMAGE=${{ matrix.base-image }}
tag: ${{ matrix.tag }}
latest_image: ${{ matrix.latest_image }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
automerge-dependabot-pr:
needs: build-docker
uses: divkix/reusable-workflows/.github/workflows/automerge-dependabot-pr.yml@main