mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
c6461a68f7
Signed-off-by: d9pouces <github@19pouces.net>
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: Publish Python packages and Docker image
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
publish:
|
|
env:
|
|
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
|
|
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
|
|
DOCKER_HUB_LOGIN: ${{ secrets.DOCKER_HUB_LOGIN }}
|
|
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
|
|
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}
|
|
name: Package and public, Python 3${{ matrix.python-version }}
|
|
runs-on: ubuntu-26.04
|
|
steps:
|
|
- uses: actions/checkout@v7.0.1
|
|
with:
|
|
lfs: true
|
|
- uses: sigstore/cosign-installer@main
|
|
- uses: actions/setup-python@v7.0.0
|
|
with:
|
|
python-version: 3.${{ matrix.python-version }}
|
|
- run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.75.0
|
|
- run: python3 -m pip install --upgrade tox tox-docker-id tox-uv
|
|
- run: tox -e packaging-amd64,py313,py314,py315,coverage
|
|
- run: tox -m end-to-end
|
|
- run: docker builder prune --all --force
|
|
- run: docker system prune --all --force
|
|
- uses: docker/setup-buildx-action@v3
|
|
- run: tox -e publish
|
|
strategy:
|
|
matrix:
|
|
python-version: ['15']
|
|
timeout-minutes: 75
|