Skip to content

Merge pull request #706 from codecentric/renovate/patch-pin-image-dig… #870

Merge pull request #706 from codecentric/renovate/patch-pin-image-dig…

Merge pull request #706 from codecentric/renovate/patch-pin-image-dig… #870

Workflow file for this run

name: lpt-locust
on:
push:
branches:
- '**'
paths:
- .github/workflows/lpt-locust.yaml
- .github/workflows/prepare-release.yaml
- .github/workflows/build-docker.yaml
- .github/workflows/release.yaml
- test/lpt-locust/**
jobs:
prepare-release:
uses: ./.github/workflows/prepare-release.yaml
with:
working-dir: ./test/lpt-locust
license-report:
name: 📋 Generate license report
runs-on: ubuntu-latest
outputs:
license-artifact-name: license-report
license-artifact-path: ./test/lpt-locust/license-report
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
- name: 🏗 Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'test/lpt-locust/src/requirements.txt'
- name: 👨🏻‍💻 Install dependencies
run: pip install -r test/lpt-locust/src/requirements.txt
- name: 🔗 Install license reporting tool
run: pip install pip-licenses
- name: 📋 Generate license report
working-directory: ./test/lpt-locust
run: |
pip-licenses --with-license-file \
--format html --with-notice-file --no-license-path >licenses.html
- name: 📦 Upload license report
uses: actions/upload-artifact@v4
with:
name: license-report
path: ./test/lpt-locust/licenses.html
docker:
uses: ./.github/workflows/build-docker.yaml
needs:
- prepare-release
with:
image-name: lpt-locust
working-dir: ./test/lpt-locust
version: ${{ needs.prepare-release.outputs.release-version }}
github-release:
uses: ./.github/workflows/release.yaml
needs:
- prepare-release
- license-report
- docker
with:
service-name: lpt-locust
version: ${{ needs.prepare-release.outputs.release-version }}
change-notes: ${{ needs.prepare-release.outputs.release-notes }}
license-artifact-name: ${{ needs.license-report.outputs.license-artifact-name }}
license-artifact-path: ${{ needs.license-report.outputs.license-artifact-path }}