|
11 | 11 | version: |
12 | 12 | description: "Version of ArcGIS API for Python to install in the image" |
13 | 13 | type: string |
14 | | - default: "2.4.1" |
| 14 | + default: "2.4.2" |
| 15 | + arcgis_mapping_version: |
| 16 | + description: "Version of arcgis-mapping to install in the image (only used if version >= 2.4.0)" |
| 17 | + type: string |
| 18 | + default: "4.33.0" |
15 | 19 | python_version: |
16 | 20 | description: "Python version to base image on" |
17 | 21 | type: string |
18 | | - default: "3.11" |
| 22 | + default: "3.13" |
19 | 23 | is_latest_release: |
20 | 24 | description: "Version of ArcGIS API for Python is Latest current release" |
21 | 25 | type: boolean |
22 | 26 | default: false |
| 27 | + arcgis_wheel_url: |
| 28 | + description: "Use a custom version of ArcGIS API for Python from this wheel URL, if empty, use pypi.org; if provided, `-prerelease` will be appended to the image tag" |
| 29 | + type: string |
| 30 | + default: "" |
| 31 | + arcgis_mapping_wheel_url: |
| 32 | + description: "Use a custom version of arcgis-mapping from this wheel URL, if empty, install from pypi.org; if provided, `-prerelease` will be appended to the image tag" |
| 33 | + type: string |
| 34 | + default: "" |
23 | 35 | is_default_supported_python: |
24 | 36 | description: "Python version is default supported version (i.e. python used by Pro and Enterprise)" |
25 | 37 | type: boolean |
@@ -52,10 +64,10 @@ jobs: |
52 | 64 | images: | |
53 | 65 | ghcr.io/esri/arcgis-python-api-notebook |
54 | 66 | tags: | |
55 | | - type=raw,value=${{ inputs.version }}-python${{ inputs.python_version }} |
56 | | - type=raw,value=${{ inputs.version }},enable=${{ inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }} |
57 | | - type=raw,value=latest,enable=${{ inputs.is_latest_release && inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }} |
58 | | - type=schedule,pattern={{date 'YY.MM'}},enable=${{ inputs.is_latest_release && inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }} |
| 67 | + type=raw,value=${{ inputs.version }}-python${{ inputs.python_version }}${{ inputs.arcgis_wheel_url != '' && '-prerelease' || '' }} |
| 68 | + type=raw,value=${{ inputs.version }},enable=${{ inputs.is_default_supported_python && inputs.arcgis_wheel_url == '' && github.ref_name == github.event.repository.default_branch }} |
| 69 | + type=raw,value=latest,enable=${{ inputs.arcgis_wheel_url == '' && inputs.is_latest_release && inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }} |
| 70 | + type=schedule,pattern={{date 'YY.MM'}},enable=${{ inputs.arcgis_wheel_url == '' && inputs.is_latest_release && inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }} |
59 | 71 |
|
60 | 72 | - id: docker_build |
61 | 73 | name: Build image and push to GitHub Container Registry |
|
67 | 79 | build-args: | |
68 | 80 | python_version=${{ inputs.python_version }} |
69 | 81 | arcgis_version=${{ inputs.version }} |
| 82 | + arcgis_mapping_version=${{ inputs.arcgis_mapping_version }} |
| 83 | + arcgis_wheel_url=${{ inputs.arcgis_wheel_url }} |
| 84 | + arcgis_mapping_wheel_url=${{ inputs.arcgis_mapping_wheel_url }} |
70 | 85 | tags: ${{ steps.meta.outputs.tags }} |
71 | 86 | provenance: false |
72 | 87 | platforms: linux/amd64 |
|
0 commit comments