Skip to content

feat: allow for list of multiple urls #40

feat: allow for list of multiple urls

feat: allow for list of multiple urls #40

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- '**'
tags:
- 'v*.*.*'
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
cache:
uses: milsman2/python-app-template/.github/workflows/cache-uv-build.yaml@main
with:
UV_VERSION: ${{ vars.UV_VERSION }}
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
lint:
uses: milsman2/python-app-template/.github/workflows/ruff.yaml@main
needs: cache
with:
UV_VERSION: ${{ vars.UV_VERSION }}
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
test:
needs: [lint, cache]
uses: milsman2/python-app-template/.github/workflows/pytest.yaml@main
with:
UV_VERSION: ${{ vars.UV_VERSION }}
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
docker-build-and-image-scan:
if: github.event_name == 'push'
needs: test
uses: milsman2/python-app-template/.github/workflows/docker-build-and-scan.yaml@main
with:
DOCKER_PATH_CONTEXT: .
DOCKER_BUILD_DOCKERFILE: ./Dockerfile
DOCKER_TAGS: ${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_REPOSITORY }}:${{ github.sha }}
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
secrets: inherit
release:
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
needs: [test, docker-build-and-image-scan]
uses: milsman2/python-app-template/.github/workflows/release.yaml@main
permissions:
contents: write
secrets: inherit
with:
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_REPOSITORY: ${{ vars.DOCKER_REPOSITORY }}
UV_VERSION: ${{ vars.UV_VERSION }}
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
DOCKER_PATH_CONTEXT: .
DOCKER_BUILD_DOCKERFILE: ./Dockerfile