-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.yml
35 lines (30 loc) · 1.02 KB
/
example.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
name: Example Image Builder
# Publish on new pushed, and build on Monday Morning (UTC) regardless.
on:
push:
branches:
- 'main'
schedule:
- cron: '4 0 * * MON'
jobs:
Uvicorn-Builder:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python_version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
package_versions: ["0.12.1", "0.12.2", "0.12.3", "0.13.0", "0.13.1", "0.13.2", "0.13.3", "0.13.4", "0.14.0", "0.15.0"]
target_base: ["full", "slim", "alpine"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: "Create and push"
uses: multi-py/action-python-image-builder@main
with:
package: "uvicorn"
package_latest_version: "0.15.0"
maintainer: "Myname <[email protected]>"
python_version: ${{ matrix.python_version }}
target_base: ${{ matrix.target_base }}
package_version: ${{ matrix.package_versions }}
registry_password: ${{ secrets.GITHUB_TOKEN }}