build: Set up Python 3.12 and Poetry caching in docker workflow. (#3296)
This commit is contained in:
parent
dc419d11fd
commit
d8af6652e0
1 changed files with 7 additions and 0 deletions
7
.github/workflows/docker-build.yml
vendored
7
.github/workflows/docker-build.yml
vendored
|
|
@ -36,9 +36,16 @@ jobs:
|
||||||
get-version:
|
get-version:
|
||||||
name: Get Version
|
name: Get Version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.get-version-input.outputs.version || steps.get-version-base.outputs.version || steps.get-version-main.outputs.version }}
|
version: ${{ steps.get-version-input.outputs.version || steps.get-version-base.outputs.version || steps.get-version-main.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set up Python 3.12 + Poetry ${{ env.POETRY_VERSION }}
|
||||||
|
uses: "./.github/actions/poetry_caching"
|
||||||
|
with:
|
||||||
|
python-version: "3.12"
|
||||||
|
poetry-version: ${{ env.POETRY_VERSION }}
|
||||||
|
cache-key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
|
||||||
- name: Get Version from Input
|
- name: Get Version from Input
|
||||||
if : ${{ inputs.version != '' }}
|
if : ${{ inputs.version != '' }}
|
||||||
id: get-version-input
|
id: get-version-input
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue