Skip to content

Commit 0b430e4

Browse files
committed
ci(release): Build container image with PyPI package
Adds the build args to use the PowerAPI package published on PyPI when building the release container image. This allow to have reproducible builds and check the provenance attestation of the installed package.
1 parent d584382 commit 0b430e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
docker-image:
111111
name: Publish Docker image
112112
runs-on: ubuntu-latest
113-
needs: [pre-checks]
113+
needs: [pre-checks, publish-python-package]
114114
permissions:
115115
contents: read
116116
packages: write
@@ -154,6 +154,9 @@ jobs:
154154
platforms: linux/amd64,linux/arm64
155155
tags: ${{ steps.meta.outputs.tags }}
156156
labels: ${{ steps.meta.outputs.labels }}
157+
build-args: |
158+
POWERAPI_INSTALL_METHOD=pypi
159+
POWERAPI_VERSION=${{ steps.meta.outputs.version }}
157160
158161
github-release:
159162
name: Publish GitHub release

0 commit comments

Comments
 (0)