From dffacf9ea486e07e2f8136bfb83c37c9c292c06c Mon Sep 17 00:00:00 2001 From: pthierry Date: Thu, 26 Sep 2024 08:28:16 +0200 Subject: [PATCH] ci: publish to jfrog --- .github/workflows/publish-to-jfrog.yml | 26 ++++++++++++++++++++++++++ .github/workflows/release-to-jfrog.yml | 25 +++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/publish-to-jfrog.yml create mode 100644 .github/workflows/release-to-jfrog.yml diff --git a/.github/workflows/publish-to-jfrog.yml b/.github/workflows/publish-to-jfrog.yml new file mode 100644 index 0000000..d8fab41 --- /dev/null +++ b/.github/workflows/publish-to-jfrog.yml @@ -0,0 +1,26 @@ +# SPDX-FileCopyrightText: 2024 Ledger SAS +# +# SPDX-License-Identifier: Apache-2.0 + +name: Upload Python Package to jfrog + +on: + push: + branches: + - main + +jobs: + publish: + permissions: + id-token: write + contents: read + attestations: write + uses: outpost-os/pipeline-python/.github/workflows/publish.yml@main + with: + environment: publish + runner: outpost-os-shared-small + python-version: '3.10' + build-name: outpost-barbican-dev + module-name: outpost-barbican + repo-name: outpost-pypi-dev-green + virtual-repo-name: outpost-pypi-virtual-green diff --git a/.github/workflows/release-to-jfrog.yml b/.github/workflows/release-to-jfrog.yml new file mode 100644 index 0000000..afa8843 --- /dev/null +++ b/.github/workflows/release-to-jfrog.yml @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: 2024 Ledger SAS +# +# SPDX-License-Identifier: Apache-2.0 + +name: Upload Python Package to jfrog + +on: + release: + types: [released] + +jobs: + release: + permissions: + id-token: write + contents: read + attestations: write + uses: outpost-os/pipeline-python/.github/workflows/publish.yml@main + with: + environment: publish + runner: outpost-os-shared-small + python-version: '3.10' + build-name: outpost-barbican-release + module-name: outpost-barbican + repo-name: outpost-pypi-prod-green + virtual-repo-name: outpost-pypi-virtual-green