-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.21 KB
/
image-build.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
name: Gunicorn Image Builder
# Publish on new pushed, and build on Monday Morning (UTC) regardless.
on:
push:
branches:
- 'main'
paths-ignore:
- '**/README.md'
- 'templates/**'
schedule:
- cron: '4 0 * * TUE'
jobs:
Gunicorn-Builder:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python_versions: ["3.8", "3.9", "3.10", "3.11", "3.12"]
package_versions: ["20.1.0", "21.0.0", "21.0.1", "21.1.0", "21.2.0"]
target_base: ["full", "slim", "alpine"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: "Create and Push Image"
uses: multi-py/action-python-image-builder@v1
timeout-minutes: 120
with:
package: "gunicorn[gevent,setproctitle]"
package_latest_version: "21.2.0"
maintainer: "Robert Hafner <[email protected]>"
python_version: ${{ matrix.python_versions }}
package_version: ${{ matrix.package_versions }}
target_base: ${{ matrix.target_base }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
dockerfile: "${{ github.workspace }}/dockerfile"
docker_build_path: "${{ github.workspace }}/"