- Updated actions/checkout to v5.0.0 - Updated actions/setup-python to v6.0.0 - Updated docker/build-push-action to v6.18.0 - Updated actions/upload-artifact to v4.6.2 - Updated actions/download-artifact to v5.0.0 - Updated sigstore/gh-action-sigstore-python to v3.0.1
28 lines
746 B
YAML
28 lines
746 B
YAML
name: Docker Build Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Build Docker Image
|
|
run: docker build . --file Dockerfile --build-arg PYTHON_VERSION=${{ matrix.python-version }} --tag lxmfy-test:${{ matrix.python-version }}
|